rkmppdec: move AV_CODEC_CAP_AVOID_PROBING to the correct field
authorwm4 <nfxjfg@googlemail.com>
Thu, 14 Dec 2017 18:47:18 +0000 (19:47 +0100)
committerwm4 <nfxjfg@googlemail.com>
Thu, 21 Dec 2017 17:50:49 +0000 (18:50 +0100)
AVCodec.caps_internal doesn't hold this field.

(Untested.)

libavcodec/rkmppdec.c

index fa522ce..c57a6de 100644 (file)
@@ -588,8 +588,7 @@ static const AVCodecHWConfigInternal *rkmpp_hw_configs[] = {
         .receive_frame  = rkmpp_receive_frame, \
         .flush          = rkmpp_flush, \
         .priv_class     = &rkmpp_##NAME##_dec_class, \
-        .capabilities   = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HARDWARE, \
-        .caps_internal  = AV_CODEC_CAP_AVOID_PROBING, \
+        .capabilities   = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_HARDWARE, \
         .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_DRM_PRIME, \
                                                          AV_PIX_FMT_NONE}, \
         .hw_configs     = rkmpp_hw_configs, \