[FFmpeg-cvslog] mov: make a length variable larger.

Anton Khirnov git at videolan.org
Sun Jun 24 21:41:45 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jun 21 18:13:34 2012 +0200| [a7b8ff94b19732012549c745e2be3a4b1e2cb872] | committer: Anton Khirnov

mov: make a length variable larger.

Right now, it's uint16_t, but for itunes metadata a 32bit number is
stored in it.

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 63c79cd..fa70eff 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -172,8 +172,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 #endif
     char str[1024], key2[16], language[4] = {0};
     const char *key = NULL;
-    uint16_t str_size, langcode = 0;
-    uint32_t data_type = 0;
+    uint16_t langcode = 0;
+    uint32_t data_type = 0, str_size;
     int (*parse)(MOVContext*, AVIOContext*, unsigned, const char*) = NULL;
 
     switch (atom.type) {



More information about the ffmpeg-cvslog mailing list