mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
theoradec: Drop ignored headers
Instead of finishing an empty frame, call drop_frame as we're ignoring the header frame.
This commit is contained in:
parent
f885829730
commit
e24196ae28
1 changed files with 1 additions and 0 deletions
|
@ -789,6 +789,7 @@ theora_dec_decode_buffer (GstTheoraDec * dec, GstBuffer * buf,
|
|||
if (packet.bytes && packet.packet[0] & 0x80) {
|
||||
if (dec->have_header) {
|
||||
GST_WARNING_OBJECT (GST_OBJECT (dec), "Ignoring header");
|
||||
result = GST_CUSTOM_FLOW_DROP;
|
||||
goto done;
|
||||
}
|
||||
result = theora_handle_header_packet (dec, &packet);
|
||||
|
|
Loading…
Reference in a new issue