mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-21 16:10:16 +08:00
avformat/id3v2: Remove unnecessary indirection
ff_id3v2_parse_apic/chapters/priv/priv_dict all had a parameter extra_meta of type ID3v2ExtraMeta ** as if the functions wanted to make *extra_meta point to something else. But they don't, so just use an ID3v2ExtraMeta *. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -638,11 +638,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (id3v2_extra_meta) {
|
||||
if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac") ||
|
||||
!strcmp(s->iformat->name, "tta") || !strcmp(s->iformat->name, "wav")) {
|
||||
if ((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0)
|
||||
if ((ret = ff_id3v2_parse_apic(s, id3v2_extra_meta)) < 0)
|
||||
goto close;
|
||||
if ((ret = ff_id3v2_parse_chapters(s, &id3v2_extra_meta)) < 0)
|
||||
if ((ret = ff_id3v2_parse_chapters(s, id3v2_extra_meta)) < 0)
|
||||
goto close;
|
||||
if ((ret = ff_id3v2_parse_priv(s, &id3v2_extra_meta)) < 0)
|
||||
if ((ret = ff_id3v2_parse_priv(s, id3v2_extra_meta)) < 0)
|
||||
goto close;
|
||||
} else
|
||||
av_log(s, AV_LOG_DEBUG, "demuxer does not support additional id3 data, skipping\n");
|
||||
|
Reference in New Issue
Block a user