OSDN Git Service

mov: 10l: Terminate string with 0 not '0'
authorAlex Converse <alex.converse@gmail.com>
Fri, 14 Oct 2011 17:38:42 +0000 (10:38 -0700)
committerAlex Converse <alex.converse@gmail.com>
Fri, 14 Oct 2011 17:38:42 +0000 (10:38 -0700)
libavformat/mov.c

index 06057a2..0463c17 100644 (file)
@@ -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);
             }