diff options
author | Lukas Stabe <lukas@stabe.de> | 2017-10-05 03:34:19 +0200 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2017-10-05 17:10:23 +0200 |
commit | 1fd80106be3dca9fa0ea13fb364c8d221bd27c15 (patch) | |
tree | e820d55b354b49746bbf46f62860de7d20ed8d19 /libavformat/utils.c | |
parent | cafd9d66ed9e1bad4ae579a3935f7af57a567a51 (diff) | |
download | ffmpeg-1fd80106be3dca9fa0ea13fb364c8d221bd27c15.tar.gz |
avformat: fix id3 chapters
These changes store id3 chapter data in ID3v2ExtraMeta and introduce
ff_id3v2_parse_chapters to parse them into the format context if needed.
Encoders using ff_id3v2_read, which previously parsed chapters into the
format context automatically, were adjusted to call
ff_id3v2_parse_chapters.
Signed-off-by: wm4 <nfxjfg@googlemail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 7abca632b5..1a7996c4fd 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -613,6 +613,8 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, !strcmp(s->iformat->name, "tta")) { if ((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0) goto fail; + if ((ret = ff_id3v2_parse_chapters(s, &id3v2_extra_meta)) < 0) + goto fail; } else av_log(s, AV_LOG_DEBUG, "demuxer does not support additional id3 data, skipping\n"); } |