]> git.sesse.net Git - ffmpeg/commit
avformat/id3v2: Avoid allocations for ID3v2ExtraMeta
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 19 May 2020 09:43:48 +0000 (11:43 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 25 May 2020 04:56:57 +0000 (06:56 +0200)
commitf08853b284514820d42f81999f4adb09ff5d95b4
tree4cef43e6f9b2bcc6cacd8a2d10b8c01c73615256
parent1ebbb493cced1af3fc891618e2573c7bc5ed7e70
avformat/id3v2: Avoid allocations for ID3v2ExtraMeta

Up until now, the ID3v2ExtraMeta structure (which is used when parsing
ID3v2 tags containing attached pictures, chapters etc.) contained a
pointer to separately allocated data that depended on the type of the
tag. Yet the difference of the sizes of the largest and the smallest of
these structures is fairly small, so that it is better to simply include
a union of all the possible types of tag-dependent structures in
ID3v2ExtraMeta. This commit implements this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hls.c
libavformat/id3v2.c
libavformat/id3v2.h
libavformat/omadec.c