Mercurial > libavcodec.hg
diff mpeg12.c @ 9011:90c99bda19f5 libavcodec
Approved hunks for VAAPI / our new shiny hwaccel API
by Gwenole Beauchesne gbeauchesne splitted desktop com
author | michael |
---|---|
date | Mon, 23 Feb 2009 13:35:52 +0000 |
parents | b595a8a59967 |
children | bcf716c58be4 |
line wrap: on
line diff
--- a/mpeg12.c Sun Feb 22 23:13:00 2009 +0000 +++ b/mpeg12.c Mon Feb 23 13:35:52 2009 +0000 @@ -26,6 +26,7 @@ */ //#define DEBUG +#include "internal.h" #include "avcodec.h" #include "dsputil.h" #include "mpegvideo.h" @@ -1303,6 +1304,7 @@ avctx->pix_fmt = mpeg_get_pixelformat(avctx); //until then pix_fmt may be changed right after codec init if( avctx->pix_fmt == PIX_FMT_XVMC_MPEG2_IDCT || + avctx->hwaccel || s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ) if( avctx->idct_algo == FF_IDCT_AUTO ) avctx->idct_algo = FF_IDCT_SIMPLE;