[SCM] libav/experimental: negative to_pad won't provoke infinite loop
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:49:34 UTC 2013
The following commit has been merged in the experimental branch:
commit 0e15b7b0dde44130069739bfb98c29e74c72be86
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Tue Aug 1 10:00:12 2006 +0000
negative to_pad won't provoke infinite loop
Originally committed as revision 5879 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 7c784fb..8d27117 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -117,7 +117,7 @@ static int gxf_find_lines_index(GXFStreamContext *ctx)
static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad)
{
- while (to_pad--) {
+ for (; to_pad > 0; to_pad--) {
put_byte(pb, 0);
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list