Commit 2f7d8977 authored by John Stebbins's avatar John Stebbins Committed by Michael Niedermayer

mov: add support for little-endian utf16 chapter names

Signed-off-by: 's avatarJanne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 97b04f5e)
parent 9653e754
......@@ -2326,6 +2326,8 @@ static void mov_read_chapters(AVFormatContext *s)
ch = get_be16(sc->pb);
if (ch == 0xfeff)
avio_get_str16be(sc->pb, len, title, title_len);
else if (ch == 0xfffe)
avio_get_str16le(sc->pb, len, title, title_len);
else {
AV_WB16(title, ch);
get_strz(sc->pb, title + 2, len - 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment