[FFmpeg-cvslog] avformat/nutenc: Fix writing strings larger than 2gb

Michael Niedermayer git at videolan.org
Sun May 10 17:08:45 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 10 16:26:58 2015 +0200| [d66b623ad07780d2265f392cbcf895f8b2f1199f] | committer: Michael Niedermayer

avformat/nutenc: Fix writing strings larger than 2gb

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

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

 libavformat/nutenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index b4b6dcd..1522a04 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -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);



More information about the ffmpeg-cvslog mailing list