aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-18 00:38:34 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-22 01:45:31 +0100
commitabea3749b32f3a25c271b80c0a673ffcf00b9636 (patch)
tree6471c7d621f6ee3efa40b083cd76581505bf3e87 /libavcodec/mjpegenc.c
parent686af4578c1ed8e3ddc88f1ce27d9c1e75452fd3 (diff)
downloadffmpeg-abea3749b32f3a25c271b80c0a673ffcf00b9636.tar.gz
avcodec/webvttenc: Don't copy data around unnecessarily
Using av_bprint_init_for_buffer() avoids copying data into the internal AVBPrint buffer (or worse: to allocate a temporary buffer in case the internal buffer does not suffice). It also ensures that the data is always 0-terminated. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mjpegenc.c')
0 files changed, 0 insertions, 0 deletions