mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
avidemux: ignore stream with invalid header time metadata
This commit is contained in:
parent
145b3a3079
commit
c007d8535c
1 changed files with 8 additions and 0 deletions
|
@ -1992,6 +1992,14 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
|
|||
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 */
|
||||
if ((stream->is_vbr && !stream->strf.auds->av_bps) ||
|
||||
(!stream->is_vbr && (!stream->strh->scale ||
|
||||
stream->strh->rate))) {
|
||||
GST_WARNING_OBJECT (element,
|
||||
"invalid audio header, ignoring stream");
|
||||
goto fail;
|
||||
}
|
||||
break;
|
||||
case GST_RIFF_FCC_iavs:
|
||||
stream->is_vbr = TRUE;
|
||||
|
|
Loading…
Reference in a new issue