From: Michael Niedermayer Date: Tue, 24 Feb 2009 18:47:36 +0000 (+0000) Subject: av_hwaccel_next() by Gwenole Beauchesne. X-Git-Tag: v0.5~173 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/414d9d7f2e6fce2b2c0fe3d072f1bc6b66e5d9ac av_hwaccel_next() by Gwenole Beauchesne. Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/utils.c b/libavcodec/utils.c index efa92fd..cd4cbde 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1135,3 +1135,8 @@ void av_register_hwaccel(AVHWAccel *hwaccel) *p = hwaccel; hwaccel->next = NULL; } + +AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel) +{ + return hwaccel ? hwaccel->next : first_hwaccel; +}