From: Wim Taymans Date: Fri, 24 Aug 2012 14:56:00 +0000 (+0200) Subject: videoencoder: allow 0 sized output frames X-Git-Tag: 1.19.3~511^2~5988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a994ebcf1ba4fd36420957b00e944681dff048ad;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/video/gstvideoencoder.c b/gst-libs/gst/video/gstvideoencoder.c index 9c41a7e6..e73705b 100644 --- a/gst-libs/gst/video/gstvideoencoder.c +++ b/gst-libs/gst/video/gstvideoencoder.c @@ -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