diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c index 5107f69db6..15fba3ce4b 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.c +++ b/gst-libs/gst/video/gstbasevideoencoder.c @@ -937,6 +937,7 @@ gst_base_video_encoder_finish_frame (GstBaseVideoEncoder * base_video_encoder, GST_DEBUG_OBJECT (base_video_encoder, "force_keyframe_headers"); if (base_video_encoder->headers) { headers = gst_buffer_ref (base_video_encoder->headers); + headers = gst_buffer_make_writable (headers); } base_video_encoder->force_keyframe_headers = FALSE; }