From 08303d774132775d49d4ba767092de5d426f089d Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 9 Nov 2013 17:07:34 +0100 Subject: hwaccel: Simplify ff_find_hwaccel It is always called by passing fields from an AVCodecContext. --- libavcodec/h263dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h263dec.c') diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 4c4a4c4310..fceb217254 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -108,7 +108,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) return AVERROR(ENOSYS); } s->codec_id = avctx->codec->id; - avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); + avctx->hwaccel = ff_find_hwaccel(avctx); /* for h263, we allocate the images after having read the header */ if (avctx->codec->id != AV_CODEC_ID_H263 && -- cgit v1.2.3