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

This commit is contained in:
Alex Converse 2011-10-14 10:38:42 -07:00
parent 8fb22c3d47
commit 7ad06beb2c

View 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);
}