[FFmpeg-cvslog] r20102 - trunk/libavformat/mov.c

reimar subversion
Wed Sep 30 20:27:39 CEST 2009


Author: reimar
Date: Wed Sep 30 20:27:39 2009
New Revision: 20102

Log:
10l in code reading codec_name, the first byte is the length and should not
become part of the string.

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Wed Sep 30 18:55:32 2009	(r20101)
+++ trunk/libavformat/mov.c	Wed Sep 30 20:27:39 2009	(r20102)
@@ -913,7 +913,7 @@ static int mov_read_stsd(MOVContext *c, 
                 int pos = 0;
                 for (i = 0; i < codec_name[0] && pos < sizeof(st->codec->codec_name) - 3; i++) {
                     uint8_t tmp;
-                    PUT_UTF8(codec_name[i], tmp, st->codec->codec_name[pos++] = tmp;)
+                    PUT_UTF8(codec_name[i+1], tmp, st->codec->codec_name[pos++] = tmp;)
                 }
                 st->codec->codec_name[pos] = 0;
             }



More information about the ffmpeg-cvslog mailing list