diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 19:04:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-24 19:04:43 +0000 |
commit | a05aa821b67d48a008e0f470fd2f9656603d40f5 (patch) | |
tree | 408bffd48850ee9ff0b6e02150829ebf93835d3b /libavcodec/mpeg12.c | |
parent | 6059f13cad4a0a980def65f3c185ce8ee7e7e0b9 (diff) | |
download | ffmpeg-a05aa821b67d48a008e0f470fd2f9656603d40f5.tar.gz |
add ff_find_hwaccel() by Gwenole Beauchesne
Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 10e4632d9d..d958ae52f3 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1302,6 +1302,7 @@ static int mpeg_decode_postinit(AVCodecContext *avctx){ }//MPEG-2 avctx->pix_fmt = mpeg_get_pixelformat(avctx); + avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); //until then pix_fmt may be changed right after codec init if( avctx->pix_fmt == PIX_FMT_XVMC_MPEG2_IDCT || avctx->hwaccel || @@ -2071,6 +2072,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx) s->low_delay= 1; avctx->pix_fmt = mpeg_get_pixelformat(avctx); + avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); if( avctx->pix_fmt == PIX_FMT_XVMC_MPEG2_IDCT || s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ) |