diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-04 12:36:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-04 17:34:26 +0200 |
commit | a162fa0772ab79fab503a7f2a5c7bb63e970cbfc (patch) | |
tree | d95fce4658d26e15fa7d4196edd3785765d364f0 /libavfilter/vf_overlay_qsv.c | |
parent | c8e38950e3aad0304ec861aa4985b866dceddc7c (diff) | |
download | ffmpeg-a162fa0772ab79fab503a7f2a5c7bb63e970cbfc.tar.gz |
avformat/yuv4mpegenc: Simplify writing global and packet headers
YUV4MPEG writes a string as header for both the file itself as well as
for every frame; these strings contain magic strings and these were up
until now included in the string to write via %s. Yet they are compile
time constants, so one can use the compile-time string concatentation
instead of inserting these strings at runtime.
Furthermore, the global header has been written via snprintf() to
a local buffer first before writing it. This can be simplified by using
avio_printf().
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/vf_overlay_qsv.c')
0 files changed, 0 insertions, 0 deletions