diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-11-09 17:07:34 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-11-10 13:59:48 +0100 |
commit | 08303d774132775d49d4ba767092de5d426f089d (patch) | |
tree | 09339c4a5d2ddd495a75a7d6eea1b101066b2069 /libavcodec/internal.h | |
parent | d42db44cfe58493eb26d2d2f307ced4dd4ca1978 (diff) | |
download | ffmpeg-08303d774132775d49d4ba767092de5d426f089d.tar.gz |
hwaccel: Simplify ff_find_hwaccel
It is always called by passing fields from an AVCodecContext.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 4648c02e09..c1108fffbb 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -105,11 +105,10 @@ struct AVCodecDefault { * Return the hardware accelerated codec for codec codec_id and * pixel format pix_fmt. * - * @param codec_id the codec to match - * @param pix_fmt the pixel format to match + * @param avctx The codec context containing the codec_id and pixel format. * @return the hardware accelerated codec, or NULL if none was found. */ -AVHWAccel *ff_find_hwaccel(enum AVCodecID codec_id, enum AVPixelFormat pix_fmt); +AVHWAccel *ff_find_hwaccel(AVCodecContext *avctx); /** * Return the index into tab at which {a,b} match elements {[0],[1]} of tab. |