[FFmpeg-cvslog] mov: add support for little-endian utf16 chapter names

John Stebbins git
Fri Jan 28 03:43:33 CET 2011


ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Wed Jan 26 05:15:49 2011 +0000| [2f7d8977bcdeb2c39fd9acbd753d605298824db8] | committer: Michael Niedermayer

mov: add support for little-endian utf16 chapter names

Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>
(cherry picked from commit 97b04f5ed3ab3a62e57f0c16841fb8f10d0a174c)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f7d8977bcdeb2c39fd9acbd753d605298824db8
---

 libavformat/mov.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index ea9423b..7ad920f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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);




More information about the ffmpeg-cvslog mailing list