summaryrefslogtreecommitdiff
path: root/libavcodec/qsvdec_mpeg2.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-07-21 09:45:05 +0200
committerAnton Khirnov <anton@khirnov.net>2015-09-28 15:42:46 +0200
commit741b352b16dad74b87c4a39bade8902633a2b0e6 (patch)
treeda9200590c6ccb10176394d2b5228df7242fd63d /libavcodec/qsvdec_mpeg2.c
parentae25413daf42a06f078ed81bb545ec23a8e0b482 (diff)
qsvdec: list supported pixel formats
This is useful for detecting QSV-enabled decoders.
Diffstat (limited to 'libavcodec/qsvdec_mpeg2.c')
-rw-r--r--libavcodec/qsvdec_mpeg2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvdec_mpeg2.c b/libavcodec/qsvdec_mpeg2.c
index 98318bd87a..3378d02a23 100644
--- a/libavcodec/qsvdec_mpeg2.c
+++ b/libavcodec/qsvdec_mpeg2.c
@@ -175,4 +175,7 @@ AVCodec ff_mpeg2_qsv_decoder = {
.close = qsv_decode_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
.priv_class = &class,
+ .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
+ AV_PIX_FMT_QSV,
+ AV_PIX_FMT_NONE },
};