]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qsvdec_mpeg2.c
v210: Add avx2 version of the 10-bit line encoder
[ffmpeg] / libavcodec / qsvdec_mpeg2.c
index 98318bd87a47d57de24b615a3a8f0d2cec81490a..5827ce474189a2491eedc7812e6b842e37b8a046 100644 (file)
@@ -173,6 +173,9 @@ AVCodec ff_mpeg2_qsv_decoder = {
     .decode         = qsv_decode_frame,
     .flush          = qsv_decode_flush,
     .close          = qsv_decode_close,
-    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
     .priv_class     = &class,
+    .pix_fmts       = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
+                                                    AV_PIX_FMT_QSV,
+                                                    AV_PIX_FMT_NONE },
 };