mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-07 23:32:33 +00:00
mov: 10l: Terminate string with 0 not '0'
(cherry picked from commit 7ad06beb2c
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5c18bcfd9c
commit
e58870a587
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user