mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
parent
fe17585568
commit
8bd3bdaf37
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ packet_duration_vorbis (GstOggStream * pad, ogg_packet * packet)
|
|||
int size;
|
||||
int duration;
|
||||
|
||||
if (packet->packet[0] & 1)
|
||||
if (packet->bytes == 0 || packet->packet[0] & 1)
|
||||
return 0;
|
||||
|
||||
mode = (packet->packet[0] >> 1) & ((1 << pad->vorbis_log2_num_modes) - 1);
|
||||
|
|
Loading…
Reference in a new issue