From deb13169b36d88d4e7f39adf4c5b7b0614fc8808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 12 Oct 2009 19:52:35 -0400 Subject: [PATCH] mimenc: Set delta_unit flag on intra frames --- ext/mimic/gstmimenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index af63ae82a9..dfa7816916 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -315,6 +315,9 @@ gst_mim_enc_chain (GstPad * pad, GstBuffer * in) res = GST_FLOW_ERROR; goto out_unlock; } + if (!keyframe) + GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT); + GST_BUFFER_SIZE (out_buf) = buffer_size + TCP_HEADER_SIZE; GST_DEBUG_OBJECT (mimenc, "incoming buf size %d, encoded size %d",