diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-22 14:15:44 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-22 23:31:58 +0100 |
commit | 244db7103797df3f3f87e4c1bd8cf5224e6ebff9 (patch) | |
tree | 227ef5bee70da627a9731e7732f8f9909677e96d /tools/seek_print.c | |
parent | c77164390b6432626d970d197c2da44f408071bc (diff) | |
download | ffmpeg-244db7103797df3f3f87e4c1bd8cf5224e6ebff9.tar.gz |
avcodec/libx265: Don't use AVBPrint unnecessarily
This code uses the AVBPrint API for exactly one av_bprintf()
in a scenario in which a good upper bound for the needed
size of the buffer is available (with said upper bound being
much smaller than sizeof(AVBPrint)). So one can simply use
snprintf() instead. This also avoids the (always-false due to
the current size of the internal AVBPrint buffer) check for
whether the AVBPrint is complete.
Furthermore, the old code used AV_BPRINT_SIZE_AUTOMATIC
which implies that the AVBPrint buffer will never be
(re)allocated and yet it used av_bprint_finalize().
This has of course also been removed.
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/seek_print.c')
0 files changed, 0 insertions, 0 deletions