Commit edee0d01 authored by Ming Qian's avatar Ming Qian Committed by Andriy Gelman

avcodec/v4l2_m2m: fix setting frame period

Currently the driver's frame period is incorrectly set to the frame
rate. This is fixed in the commit.
Signed-off-by: 's avatarMing Qian <ming.qian@nxp.com>
Signed-off-by: 's avatarAndriy Gelman <andriy.gelman@gmail.com>
parent 67de1865
......@@ -172,7 +172,7 @@ static int v4l2_prepare_encoder(V4L2m2mContext *s)
* settingss
*/
if (avctx->framerate.num || avctx->framerate.den)
v4l2_set_timeperframe(s, avctx->framerate.num, avctx->framerate.den);
v4l2_set_timeperframe(s, avctx->framerate.den, avctx->framerate.num);
/* set ext ctrls */
v4l2_set_ext_ctrl(s, MPEG_CID(HEADER_MODE), MPEG_VIDEO(HEADER_MODE_SEPARATE), "header mode");
......
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