From a05aa821b67d48a008e0f470fd2f9656603d40f5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 24 Feb 2009 19:04:43 +0000 Subject: add ff_find_hwaccel() by Gwenole Beauchesne Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/h264.c') 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(); -- cgit v1.2.3