mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
videoencoder: allow 0 sized output frames
Allow 0 sized frames in gst_video_encoder_allocate_output_frame(). Theora encodes repeat frames, for example, as 0 sized buffers. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681196
This commit is contained in:
parent
efac71bab7
commit
a994ebcf1b
1 changed files with 0 additions and 1 deletions
|
@ -1592,7 +1592,6 @@ gst_video_encoder_allocate_output_frame (GstVideoEncoder *
|
|||
encoder, GstVideoCodecFrame * frame, gsize size)
|
||||
{
|
||||
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (size > 0, GST_FLOW_ERROR);
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
|
||||
if (G_UNLIKELY (encoder->priv->output_state_changed
|
||||
|
|
Loading…
Reference in a new issue