mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
theoraenc: Don't call gst_buffer_fill() for empty Theora packets
gst_buffer_fill() does not like a NULL source data pointer.
This commit is contained in:
parent
f3b6548f09
commit
ef6a2a6c14
1 changed files with 2 additions and 1 deletions
|
@ -633,6 +633,7 @@ theora_push_packet (GstTheoraEnc * enc, ogg_packet * packet)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (packet->bytes > 0)
|
||||||
gst_buffer_fill (frame->output_buffer, 0, packet->packet, packet->bytes);
|
gst_buffer_fill (frame->output_buffer, 0, packet->packet, packet->bytes);
|
||||||
|
|
||||||
/* the second most significant bit of the first data byte is cleared
|
/* the second most significant bit of the first data byte is cleared
|
||||||
|
|
Loading…
Reference in a new issue