[FFmpeg-cvslog] mov: 10l: Terminate string with 0 not '0'

Alex Converse git at videolan.org
Fri Nov 4 13:22:21 CET 2011


ffmpeg | branch: release/0.8 | Alex Converse <alex.converse at gmail.com> | Fri Oct 14 10:38:42 2011 -0700| [e58870a58749eb3266e16166d8370a5f2e960311] | committer: Michael Niedermayer

mov: 10l: Terminate string with 0 not '0'
(cherry picked from commit 7ad06beb2cf31d8a96f475361425d6cc95e8f176)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e58870a58749eb3266e16166d8370a5f2e960311
---

 libavformat/mov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 553abc2..a1aaf4a 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);
             }



More information about the ffmpeg-cvslog mailing list