mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-21 13:22:13 +00:00
avformat/matroskadec: Remove redundant setting of chapter titles
Chapter titles are added to the chapter's metadata since 6cb6e159, yet since 012867f0 (the predecessor of) avpriv_new_chapter() already adds the title to the chapter's metadata. So setting it again in matroskadec.c is redundant and expensive. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
2e92e1fb27
commit
3059b7746a
@ -2933,10 +2933,6 @@ static int matroska_read_header(AVFormatContext *s)
|
|||||||
(AVRational) { 1, 1000000000 },
|
(AVRational) { 1, 1000000000 },
|
||||||
chapters[i].start, chapters[i].end,
|
chapters[i].start, chapters[i].end,
|
||||||
chapters[i].title);
|
chapters[i].title);
|
||||||
if (chapters[i].chapter) {
|
|
||||||
av_dict_set(&chapters[i].chapter->metadata,
|
|
||||||
"title", chapters[i].title, 0);
|
|
||||||
}
|
|
||||||
max_start = chapters[i].start;
|
max_start = chapters[i].start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user