[SCM] libav/experimental: 10l inverted condition check generated an endless loop

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:52:22 UTC 2013


The following commit has been merged in the experimental branch:
commit 595da759de5a94def0ee409a72b07d0be36f5d2a
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Tue Oct 17 17:19:11 2006 +0000

    10l inverted condition check generated an endless loop
    
    Originally committed as revision 6722 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c
index 5f13669..1e5d386 100644
--- a/libavformat/ogg2.c
+++ b/libavformat/ogg2.c
@@ -494,7 +494,7 @@ ogg_get_length (AVFormatContext * s)
     ogg->size = size;
     ogg_restore (s, 0);
     ogg_save (s);
-    while (ogg_read_page (s, &i)) {
+    while (!ogg_read_page (s, &i)) {
         if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)
             break;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list