[FFmpeg-cvslog] r17566 - trunk/libavcodec/utils.c

michael subversion
Tue Feb 24 19:46:00 CET 2009


Author: michael
Date: Tue Feb 24 19:46:00 2009
New Revision: 17566

Log:
av_register_hwaccel() from Gwenole Beauchesne.

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Tue Feb 24 19:39:42 2009	(r17565)
+++ trunk/libavcodec/utils.c	Tue Feb 24 19:46:00 2009	(r17566)
@@ -1124,3 +1124,14 @@ void ff_log_ask_for_sample(void *avc, co
             "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;
+}




More information about the ffmpeg-cvslog mailing list