avcodec/v4l2_m2m_enc: fix usage of deprecated codec flag
authorJames Almer <jamrial@gmail.com>
Sat, 21 Oct 2017 21:19:02 +0000 (18:19 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 21 Oct 2017 21:19:02 +0000 (18:19 -0300)
libavcodec/v4l2_m2m_enc.c

index f71ce5f..76ce85f 100644 (file)
@@ -204,7 +204,7 @@ static int v4l2_prepare_encoder(V4L2m2mContext *s)
             v4l2_set_ext_ctrl(s, MPEG_CID(MPEG4_PROFILE), val, "mpeg4 profile");
         qmin_cid = MPEG_CID(MPEG4_MIN_QP);
         qmax_cid = MPEG_CID(MPEG4_MAX_QP);
-        if (avctx->flags & CODEC_FLAG_QPEL)
+        if (avctx->flags & AV_CODEC_FLAG_QPEL)
             v4l2_set_ext_ctrl(s, MPEG_CID(MPEG4_QPEL), 1, "qpel");
         qmin = 1;
         qmax = 31;