Commit ab4835f4 authored by Aman Gupta's avatar Aman Gupta

avcodec/v4l2_m2m_enc: add support for -force_key_frames

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent 0f0f5188
......@@ -245,6 +245,9 @@ static int v4l2_send_frame(AVCodecContext *avctx, const AVFrame *frame)
V4L2m2mContext *s = ((V4L2m2mPriv*)avctx->priv_data)->context;
V4L2Context *const output = &s->output;
if (frame && frame->pict_type == AV_PICTURE_TYPE_I)
v4l2_set_ext_ctrl(s, MPEG_CID(FORCE_KEY_FRAME), 0, "force key frame");
return ff_v4l2_context_enqueue_frame(output, frame);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment