[SCM] libav/experimental: Correctly print number of remaining bytes in oggparsevorbis instead of always with inverted sign.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:51:42 UTC 2013


The following commit has been merged in the experimental branch:
commit 7d507ceb79a4869e1e626d425451cc104b75051e
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Wed Sep 23 09:18:23 2009 +0000

    Correctly print number of remaining bytes in oggparsevorbis instead of always
    with inverted sign.
    
    Originally committed as revision 19978 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 5b45631..afc3fcb 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -112,7 +112,7 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size)
     }
 
     if (p != end)
-        av_log(as, AV_LOG_INFO, "%ti bytes of comment header remain\n", p-end);
+        av_log(as, AV_LOG_INFO, "%ti bytes of comment header remain\n", end-p);
     if (n > 0)
         av_log(as, AV_LOG_INFO,
                "truncated comment header, %i comments not found\n", n);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list