mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +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,7 +633,8 @@ theora_push_packet (GstTheoraEnc * enc, ogg_packet * packet)
|
|||
goto done;
|
||||
}
|
||||
|
||||
gst_buffer_fill (frame->output_buffer, 0, packet->packet, packet->bytes);
|
||||
if (packet->bytes > 0)
|
||||
gst_buffer_fill (frame->output_buffer, 0, packet->packet, packet->bytes);
|
||||
|
||||
/* the second most significant bit of the first data byte is cleared
|
||||
* for keyframes */
|
||||
|
|
Loading…
Reference in a new issue