mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
oggdemux: don't copy empty packets
Don't try to copy empty packets, which contain a repeated frame in theora. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680520
This commit is contained in:
parent
1256d5ed71
commit
c9c4aedaa6
1 changed files with 5 additions and 3 deletions
|
@ -640,9 +640,11 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet,
|
|||
if (delta_unit)
|
||||
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
|
||||
/* copy packet in buffer */
|
||||
gst_buffer_fill (buf, 0, packet->packet + offset,
|
||||
packet->bytes - offset - trim);
|
||||
if (packet->packet != NULL) {
|
||||
/* copy packet in buffer */
|
||||
gst_buffer_fill (buf, 0, packet->packet + offset,
|
||||
packet->bytes - offset - trim);
|
||||
}
|
||||
|
||||
GST_BUFFER_TIMESTAMP (buf) = out_timestamp;
|
||||
GST_BUFFER_DURATION (buf) = out_duration;
|
||||
|
|
Loading…
Reference in a new issue