aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-06 08:24:23 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-10 08:52:30 +0200
commit8a81ecce73dee9f7919fd88825fed33b0f26775b (patch)
treea5c96104cb6a480a57fcf5a492c45f1910b67f58
parent1df13b3891aa5fd482bfe9ff9e455b39e0a3cd38 (diff)
downloadffmpeg-8a81ecce73dee9f7919fd88825fed33b0f26775b.tar.gz
avutil/bprint: Don't use value of AV_BPRINT_SIZE_AUTOMATIC directly
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavutil/bprint.c2
1 files changed, 1 insertions, 1 deletions
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;