]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
av_hwaccel_next() by Gwenole Beauchesne.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 24 Feb 2009 18:47:36 +0000 (18:47 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 24 Feb 2009 18:47:36 +0000 (18:47 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17567 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/utils.c

index efa92fdb9b50ac3b905e6b3a903711cf82cf33ec..cd4cbde3742665d9b4821483e89c891eb228a772 100644 (file)
@@ -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;
+}