mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
oggstream: avoild division by 0
This commit is contained in:
parent
12929944a7
commit
50e556cc84
1 changed files with 4 additions and 0 deletions
|
@ -870,7 +870,11 @@ gst_ogg_map_add_index (GstOggStream * pad, const guint8 * data, guint size)
|
|||
}
|
||||
|
||||
n_keypoints = GST_READ_UINT64_LE (data);
|
||||
|
||||
pad->kp_denom = GST_READ_UINT64_LE (data + 8);
|
||||
if (pad->kp_denom == 0)
|
||||
pad->kp_denom = 1;
|
||||
|
||||
data += 16;
|
||||
size -= 16;
|
||||
|
||||
|
|
Loading…
Reference in a new issue