[FFmpeg-cvslog] lavf/tedcaptionsdec: Replace the number by macro for bprint init

Jun Zhao git at videolan.org
Sun Jun 17 05:01:57 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Sun Jun 10 16:02:57 2018 +0800| [f7ffb10fb733ac8c7484eca67dc531fdf5b9a309] | committer: Jun Zhao

lavf/tedcaptionsdec: Replace the number by macro for bprint init

Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7ffb10fb733ac8c7484eca67dc531fdf5b9a309
---

 libavformat/tedcaptionsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index 774d4993b5..cd6ab0c24b 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -94,7 +94,7 @@ static int parse_string(AVIOContext *pb, int *cur_byte, AVBPrint *bp, int full)
 {
     int ret;
 
-    av_bprint_init(bp, 0, full ? -1 : 1);
+    av_bprint_init(bp, 0, full ? AV_BPRINT_SIZE_UNLIMITED : AV_BPRINT_SIZE_AUTOMATIC);
     ret = expect_byte(pb, cur_byte, '"');
     if (ret < 0)
         goto fail;



More information about the ffmpeg-cvslog mailing list