changeset 9030:c7d783120b99 libavcodec

av_register_hwaccel() from Gwenole Beauchesne.
author michael
date Tue, 24 Feb 2009 18:46:00 +0000
parents e10f554d8fb7
children 62f346579c36
files utils.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Tue Feb 24 18:39:42 2009 +0000
+++ b/utils.c	Tue Feb 24 18:46:00 2009 +0000
@@ -1124,3 +1124,14 @@
             "of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ "
             "and contact the ffmpeg-devel mailing list.\n");
 }
+
+static AVHWAccel *first_hwaccel = NULL;
+
+void av_register_hwaccel(AVHWAccel *hwaccel)
+{
+    AVHWAccel **p = &first_hwaccel;
+    while (*p)
+        p = &(*p)->next;
+    *p = hwaccel;
+    hwaccel->next = NULL;
+}