diff options
author | Philip Langdale <philipl@overt.org> | 2017-11-16 07:38:10 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2017-11-20 07:03:26 -0800 |
commit | 8bca292c3045a7f372299f71c8d88b541fe2a816 (patch) | |
tree | 3b3367c83d6476c1f8d917988fbec92c5fb18bca /libavcodec/mpeg12dec.c | |
parent | 4c7b023d56e09a78a587d036db1b64bf7c493b3d (diff) | |
download | ffmpeg-8bca292c3045a7f372299f71c8d88b541fe2a816.tar.gz |
avcodec: Implement mpeg1 nvdec hwaccel
Once I remembered that there's a separate decoder type for mpeg1,
even though params struct is shared with mpeg2, everything worked.
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 2b213eebcd..5a51d09bb0 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1130,6 +1130,9 @@ static void quant_matrix_rebuild(uint16_t *matrix, const uint8_t *old_perm, } static const enum AVPixelFormat mpeg1_hwaccel_pixfmt_list_420[] = { +#if CONFIG_MPEG1_NVDEC_HWACCEL + AV_PIX_FMT_CUDA, +#endif #if CONFIG_MPEG1_XVMC_HWACCEL AV_PIX_FMT_XVMC, #endif |