mimenc: Set delta_unit flag on intra frames

This commit is contained in:
Olivier Crête 2009-10-12 19:52:35 -04:00
parent fe7fe29221
commit deb13169b3

View file

@ -315,6 +315,9 @@ gst_mim_enc_chain (GstPad * pad, GstBuffer * in)
res = GST_FLOW_ERROR; res = GST_FLOW_ERROR;
goto out_unlock; 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_BUFFER_SIZE (out_buf) = buffer_size + TCP_HEADER_SIZE;
GST_DEBUG_OBJECT (mimenc, "incoming buf size %d, encoded size %d", GST_DEBUG_OBJECT (mimenc, "incoming buf size %d, encoded size %d",