av_hwaccel_next() by Gwenole Beauchesne.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2009 18:47:36 +0000 (18:47 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2009 18:47:36 +0000 (18:47 +0000)
Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index efa92fd..cd4cbde 100644 (file)
@@ -1135,3 +1135,8 @@ void av_register_hwaccel(AVHWAccel *hwaccel)
     *p = hwaccel;
     hwaccel->next = NULL;
 }
     *p = hwaccel;
     hwaccel->next = NULL;
 }
+
+AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
+{
+    return hwaccel ? hwaccel->next : first_hwaccel;
+}