提交 97b04f5e 编写于 作者: J John Stebbins 提交者: Janne Grunau

mov: add support for little-endian utf16 chapter names

Signed-off-by: NJanne Grunau <janne-ffmpeg@jannau.net>
上级 795ed278
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册