avformat/nutenc: Fix writing strings larger than 2gb
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 May 2015 14:26:58 +0000 (16:26 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 May 2015 14:26:58 +0000 (16:26 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutenc.c

index b4b6dcd..1522a04 100644 (file)
@@ -280,7 +280,7 @@ static void put_tt(NUTContext *nut, AVRational *time_base, AVIOContext *bc, uint
  */
 static void put_str(AVIOContext *bc, const char *string)
 {
-    int len = strlen(string);
+    size_t len = strlen(string);
 
     ff_put_v(bc, len);
     avio_write(bc, string, len);