summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-11-09 17:07:34 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-11-10 13:59:48 +0100
commit08303d774132775d49d4ba767092de5d426f089d (patch)
tree09339c4a5d2ddd495a75a7d6eea1b101066b2069 /libavcodec/h263dec.c
parentd42db44cfe58493eb26d2d2f307ced4dd4ca1978 (diff)
hwaccel: Simplify ff_find_hwaccel
It is always called by passing fields from an AVCodecContext.
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
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 &&