diff options
| author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-18 00:38:34 +0100 |
|---|---|---|
| committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-22 01:45:31 +0100 |
| commit | abea3749b32f3a25c271b80c0a673ffcf00b9636 (patch) | |
| tree | 6471c7d621f6ee3efa40b083cd76581505bf3e87 /fftools/cmdutils.c | |
| parent | 686af4578c1ed8e3ddc88f1ce27d9c1e75452fd3 (diff) | |
| download | ffmpeg-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 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions
