[SCM] libav/experimental: av_register_hwaccel() from Gwenole Beauchesne.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:39:25 UTC 2013


The following commit has been merged in the experimental branch:
commit c895618bb0c9ff2a699544f0a109ffd3871d3536
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Tue Feb 24 18:46:00 2009 +0000

    av_register_hwaccel() from Gwenole Beauchesne.
    
    Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f9b9a30..efa92fd 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1124,3 +1124,14 @@ void ff_log_ask_for_sample(void *avc, const char *msg)
             "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;
+}

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list