[FFmpeg-cvslog] avutil/bprint: Don't use value of AV_BPRINT_SIZE_AUTOMATIC directly
Andreas Rheinhardt
git at videolan.org
Thu Aug 10 10:12:34 EEST 2023
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Aug 6 08:24:23 2023 +0200| [8a81ecce73dee9f7919fd88825fed33b0f26775b] | committer: Andreas Rheinhardt
avutil/bprint: Don't use value of AV_BPRINT_SIZE_AUTOMATIC directly
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a81ecce73dee9f7919fd88825fed33b0f26775b
---
libavutil/bprint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/bprint.c b/libavutil/bprint.c
index 5b540ebc9e..23998a8b02 100644
--- a/libavutil/bprint.c
+++ b/libavutil/bprint.c
@@ -71,7 +71,7 @@ void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
unsigned size_auto = (char *)buf + sizeof(*buf) -
buf->reserved_internal_buffer;
- if (size_max == 1)
+ if (size_max == AV_BPRINT_SIZE_AUTOMATIC)
size_max = size_auto;
buf->str = buf->reserved_internal_buffer;
buf->len = 0;
More information about the ffmpeg-cvslog
mailing list