1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/gifdec: -1 -> AV_BPRINT_SIZE_UNLIMITED

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-06-26 08:47:26 +08:00
parent 9cfed6d84a
commit 1dee8bf909

View File

@ -144,7 +144,7 @@ static int gif_read_header(AVFormatContext *s)
AVBPrint bp;
int block_size;
av_bprint_init(&bp, 0, -1);
av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED);
while ((block_size = avio_r8(pb)) != 0) {
avio_read_to_bprint(pb, &bp, block_size);
}