From cd98f20b4abac8241ef7f922eb85ba6fe3fe230b Mon Sep 17 00:00:00 2001 From: Philip Langdale <philipl@overt.org> Date: Sun, 18 Feb 2018 15:53:33 -0800 Subject: avcodec/nvdec: Implement mjpeg nvdec hwaccel --- libavcodec/nvdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/nvdec.c') diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index e9e6ea0f8b..ab3cb88b27 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -54,6 +54,7 @@ static int map_avcodec_id(enum AVCodecID id) switch (id) { case AV_CODEC_ID_H264: return cudaVideoCodec_H264; case AV_CODEC_ID_HEVC: return cudaVideoCodec_HEVC; + case AV_CODEC_ID_MJPEG: return cudaVideoCodec_JPEG; case AV_CODEC_ID_MPEG1VIDEO: return cudaVideoCodec_MPEG1; case AV_CODEC_ID_MPEG2VIDEO: return cudaVideoCodec_MPEG2; case AV_CODEC_ID_MPEG4: return cudaVideoCodec_MPEG4; -- cgit v1.2.3