aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-10-14 10:38:42 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 01:21:57 +0100
commite58870a58749eb3266e16166d8370a5f2e960311 (patch)
treead9127237b2a476bd5cecb676f6cb05da304a573
parent5c18bcfd9cb6b4bbb40d487b52226ed5cf79320e (diff)
downloadffmpeg-e58870a58749eb3266e16166d8370a5f2e960311.tar.gz
mov: 10l: Terminate string with 0 not '0'
(cherry picked from commit 7ad06beb2cf31d8a96f475361425d6cc95e8f176) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 553abc246a..a1aaf4a963 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2413,7 +2413,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
get_strz(sc->pb, title + 2, len - 1);
}