diff mbox series

[FFmpeg-devel,6/6] avformat/gifdec: -1 -> AV_BPRINT_SIZE_UNLIMITED

Message ID 1593132446-21202-6-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 1dee8bf9099ce9460486c566aa1fb0612890d939
Headers show
Series [FFmpeg-devel,1/6] avcodec/dvbsubdec: simplify code by using OFFSET() macro | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Lance Wang June 26, 2020, 12:47 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/gifdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c
index a31644c..d617de5 100644
--- a/libavformat/gifdec.c
+++ b/libavformat/gifdec.c
@@ -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);
                 }