[FFmpeg-cvslog] mov: 10l: Terminate string with 0 not '0'

Alex Converse git at videolan.org
Fri Oct 14 22:40:35 CEST 2011


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Fri Oct 14 10:38:42 2011 -0700| [7ad06beb2cf31d8a96f475361425d6cc95e8f176] | committer: Alex Converse

mov: 10l: Terminate string with 0 not '0'

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 06057a2..0463c17 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2380,7 +2380,7 @@ static void mov_read_chapters(AVFormatContext *s)
             else {
                 AV_WB16(title, ch);
                 if (len == 1 || len == 2)
-                    title[len] = '0';
+                    title[len] = 0;
                 else
                     avio_get_str(sc->pb, len - 2, title + 2, title_len - 2);
             }



More information about the ffmpeg-cvslog mailing list