aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-24 19:04:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-24 19:04:43 +0000
commita05aa821b67d48a008e0f470fd2f9656603d40f5 (patch)
tree408bffd48850ee9ff0b6e02150829ebf93835d3b /libavcodec/h264.c
parent6059f13cad4a0a980def65f3c185ce8ee7e7e0b9 (diff)
downloadffmpeg-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/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f5d2a8082a..89f9978b2b 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2182,6 +2182,7 @@ static av_cold int decode_init(AVCodecContext *avctx){
avctx->pix_fmt= PIX_FMT_VDPAU_H264;
else
avctx->pix_fmt= avctx->get_format(avctx, avctx->codec->pix_fmts);
+ avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt);
decode_init_vlc();