mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
oggstream: avoid division by 0 on bad annodex streams
This commit is contained in:
parent
ab82529497
commit
4ed58b5882
1 changed files with 5 additions and 1 deletions
|
@ -695,7 +695,11 @@ setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
data += 8;
|
||||
|
||||
/* FIXME: we don't use basetime anywhere in the demuxer! */
|
||||
basetime = gst_util_uint64_scale (GST_SECOND, basetime_n, basetime_d);
|
||||
if (basetime_d != 0)
|
||||
basetime = gst_util_uint64_scale (GST_SECOND, basetime_n, basetime_d);
|
||||
else
|
||||
basetime = -1;
|
||||
|
||||
GST_INFO ("skeleton fishead parsed (basetime: %" GST_TIME_FORMAT ")",
|
||||
GST_TIME_ARGS (basetime));
|
||||
|
||||
|
|
Loading…
Reference in a new issue