[SCM] libav/experimental: probetest: replace usage of deprecated first_iformat by av_iformat_next()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:17:44 UTC 2013


The following commit has been merged in the experimental branch:
commit ad2d0fdf2519a413e8194d8cd641a230c612abc3
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Fri Oct 15 14:44:18 2010 +0000

    probetest: replace usage of deprecated first_iformat by av_iformat_next()
    
    Originally committed as revision 25490 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tools/probetest.c b/tools/probetest.c
index d1d77b3..b4bb5ae 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -30,9 +30,9 @@ static int failures = 0;
 static void probe(AVProbeData *pd, int type, int p, int size)
 {
     int i = 0;
-    AVInputFormat *fmt;
+    AVInputFormat *fmt = NULL;
 
-    for (fmt = first_iformat; fmt != NULL; fmt = fmt->next) {
+    while ((fmt = av_iformat_next(fmt))) {
         if (fmt->flags & AVFMT_NOFILE)
             continue;
         if (fmt->read_probe) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list