aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-08-01 10:00:12 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-08-01 10:00:12 +0000
commit0e15b7b0dde44130069739bfb98c29e74c72be86 (patch)
tree7f3f973d63e67d4e13556eaf48e579b8bcfdf1bc /libavformat/gxfenc.c
parent3068f1c81342a47b66cc7d2f54f340de3ec3dcbf (diff)
downloadffmpeg-0e15b7b0dde44130069739bfb98c29e74c72be86.tar.gz
negative to_pad won't provoke infinite loop
Originally committed as revision 5879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r--libavformat/gxfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 7c784fbb81..8d2711776f 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);
}
}