From 7ad06beb2cf31d8a96f475361425d6cc95e8f176 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Fri, 14 Oct 2011 10:38:42 -0700 Subject: [PATCH] mov: 10l: Terminate string with 0 not '0' --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 06057a29e9..0463c17cba 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); }