summaryrefslogtreecommitdiff
path: root/libavcodec/h264.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/h264.c
parentd42db44cfe58493eb26d2d2f307ced4dd4ca1978 (diff)
hwaccel: Simplify ff_find_hwaccel
It is always called by passing fields from an AVCodecContext.
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f0ef2eb9b3..8faefbd81a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3144,7 +3144,7 @@ static int h264_slice_header_init(H264Context *h, int reinit)
h->sps.num_units_in_tick, den, 1 << 30);
}
- h->avctx->hwaccel = ff_find_hwaccel(h->avctx->codec->id, h->avctx->pix_fmt);
+ h->avctx->hwaccel = ff_find_hwaccel(h->avctx);
if (reinit)
free_tables(h, 0);