Commit 242da26d authored by bcoudurier's avatar bcoudurier

negative to_pad won't provoke infinite loop

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5879 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a4d2caaa
...@@ -117,7 +117,7 @@ static int gxf_find_lines_index(GXFStreamContext *ctx) ...@@ -117,7 +117,7 @@ static int gxf_find_lines_index(GXFStreamContext *ctx)
static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad) static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad)
{ {
while (to_pad--) { for (; to_pad > 0; to_pad--) {
put_byte(pb, 0); put_byte(pb, 0);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment