You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
negative to_pad won't provoke infinite loop
Originally committed as revision 5879 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user