diff options
author | wm4 <nfxjfg@googlemail.com> | 2016-04-14 12:21:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-04-30 08:19:53 +0200 |
commit | 9a382f363950c0aab1500aa0937f73bf4dde9ee3 (patch) | |
tree | e2645f4d835cf5338aeec2eece30ed7c3a90515a /libavcodec/mmaldec.c | |
parent | d52208e8d549d4c84a2a348aa3790b1a177e779a (diff) | |
download | ffmpeg-9a382f363950c0aab1500aa0937f73bf4dde9ee3.tar.gz |
mmaldec: add vc1 decoding support
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mmaldec.c')
-rw-r--r-- | libavcodec/mmaldec.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 331a017910..6015e54867 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -356,6 +356,10 @@ static av_cold int ffmmal_init_decoder(AVCodecContext *avctx) format_in->encoding = MMAL_ENCODING_MP2V; av_log(avctx, AV_LOG_DEBUG, "Use MMAL MP2V encoding\n"); break; + case AV_CODEC_ID_VC1: + format_in->encoding = MMAL_ENCODING_WVC1; + av_log(avctx, AV_LOG_DEBUG, "Use MMAL WVC1 encoding\n"); + break; case AV_CODEC_ID_H264: default: format_in->encoding = MMAL_ENCODING_H264; @@ -777,6 +781,13 @@ AVHWAccel ff_mpeg2_mmal_hwaccel = { .pix_fmt = AV_PIX_FMT_MMAL, }; +AVHWAccel ff_vc1_mmal_hwaccel = { + .name = "vc1_mmal", + .type = AVMEDIA_TYPE_VIDEO, + .id = AV_CODEC_ID_VC1, + .pix_fmt = AV_PIX_FMT_MMAL, +}; + static const AVOption options[]={ {"extra_buffers", "extra buffers", offsetof(MMALDecodeContext, extra_buffers), AV_OPT_TYPE_INT, {.i64 = 10}, 0, 256, 0}, {NULL} @@ -811,3 +822,4 @@ static const AVOption options[]={ FFMMAL_DEC(h264, AV_CODEC_ID_H264) FFMMAL_DEC(mpeg2, AV_CODEC_ID_MPEG2VIDEO) +FFMMAL_DEC(vc1, AV_CODEC_ID_VC1) |