aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/alsa_dec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-15 11:49:48 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-20 23:42:28 +0200
commitfe662516a526c3821b77057c5572bc7f83c21b60 (patch)
tree1f086325ba6bdd1dfe6ad26a9c0e05bb30f65bde /libavdevice/alsa_dec.c
parentb468ddc75dde91cdb434457e7efc3d9efe40ddcf (diff)
downloadffmpeg-fe662516a526c3821b77057c5572bc7f83c21b60.tar.gz
avformat/matroskaenc: Don't check twice whether to write tags
Because not all metadata is written as tags, the Matroska muxer filters out the tags that are not written as tags. Therefore the code first checks whether a Tag master element needs to be opened for a given stream/chapter/attachment/global metadata. If the answer turns out to be yes, it is checked again whether a given AVDictionaryEntry is written as a tag. This commit changes this: The Tag element is opened unconditionally and in case it turns out that it was unneeded, it is discarded again. This is possible because the Tag element is written into its own dynamic buffer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/alsa_dec.c')
0 files changed, 0 insertions, 0 deletions