diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-03-06 18:01:05 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-11 14:59:07 +0200 |
commit | 5c1d7246cd65dc4db1b6dc36e29ce39fc1068f3f (patch) | |
tree | 148e38d7cf5475129e9930acd4952fcf867ec0a7 /libavcodec/mpeg12dec.c | |
parent | 632ad2248e2e5d8cd4b51e6c87c943a38c3da425 (diff) | |
download | ffmpeg-5c1d7246cd65dc4db1b6dc36e29ce39fc1068f3f.tar.gz |
lavc: set AVCodecContext.hwaccel in ff_get_format()
This way each decoder does not have to do the same thing manually.
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index c2cafe5f23..1cd37fa6b7 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1295,7 +1295,6 @@ static int mpeg_decode_postinit(AVCodecContext *avctx) } // MPEG-2 avctx->pix_fmt = mpeg_get_pixelformat(avctx); - avctx->hwaccel = ff_find_hwaccel(avctx); // until then pix_fmt may be changed right after codec init #if FF_API_XVMC if ((avctx->pix_fmt == AV_PIX_FMT_XVMC_MPEG2_IDCT || @@ -2126,7 +2125,6 @@ static int vcr2_init_sequence(AVCodecContext *avctx) s->low_delay = 1; avctx->pix_fmt = mpeg_get_pixelformat(avctx); - avctx->hwaccel = ff_find_hwaccel(avctx); #if FF_API_XVMC if ((avctx->pix_fmt == AV_PIX_FMT_XVMC_MPEG2_IDCT || avctx->hwaccel) && |