aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-10 17:37:51 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-10 17:37:51 +0100
commit78e150c5e9bb5a628d00562ade1fd4bf3635fc4d (patch)
tree7d0ec6dc63bd5a309821e9198d254a14f93fd87b /libavcodec/utils.c
parent2fbc759d08cae97f9361e464a685a149c9d12c72 (diff)
parent08303d774132775d49d4ba767092de5d426f089d (diff)
downloadffmpeg-78e150c5e9bb5a628d00562ade1fd4bf3635fc4d.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: hwaccel: Simplify ff_find_hwaccel Conflicts: libavcodec/mpeg12dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 17ca9c782b..d20ce3dc15 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3218,8 +3218,11 @@ AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
return hwaccel ? hwaccel->next : first_hwaccel;
}
-AVHWAccel *ff_find_hwaccel(enum AVCodecID codec_id, enum AVPixelFormat pix_fmt)
+AVHWAccel *ff_find_hwaccel(AVCodecContext *avctx)
{
+ enum AVCodecID codec_id = avctx->codec->id;
+ enum AVPixelFormat pix_fmt = avctx->pix_fmt;
+
AVHWAccel *hwaccel = NULL;
while ((hwaccel = av_hwaccel_next(hwaccel)))