From d680842a7f33c156cb122dc56fbf8967be1dfc68 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 22 Feb 2011 14:00:11 +0100 Subject: [PATCH] avidemux: check for NULL audio stream format header when parsing stream --- gst/avi/gstavidemux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 95131d3a41..0627710b6f 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -2020,10 +2020,12 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf) res = gst_riff_parse_strf_auds (element, sub, &stream->strf.auds, &stream->extradata); + sub = NULL; + if (!res) + break; stream->is_vbr = (stream->strh->samplesize == 0) && stream->strh->scale > 1 && stream->strf.auds->blockalign != 1; - sub = NULL; GST_DEBUG_OBJECT (element, "marking audio as VBR:%d, res %d", stream->is_vbr, res); /* we need these or we have no way to come up with timestamps */