]> git.sesse.net Git - ffmpeg/commitdiff
flvenc: use int64_t to store offsets
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 8 Jun 2011 14:32:07 +0000 (14:32 +0000)
committerAnton Khirnov <anton@khirnov.net>
Tue, 16 Aug 2011 18:24:20 +0000 (20:24 +0200)
Metadata currently is written only at the start of the file in normal
cases, when transcoding from a rtmp source metadata could be
written later and the offset recorded can exceed 32bit.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/flvenc.c

index 36f7e1f46cb2fad25a74dad21765c66fe4be8497..f3017d756396ddd6fbb711426eb34f431a5f6431 100644 (file)
@@ -179,7 +179,7 @@ static int flv_write_header(AVFormatContext *s)
     AVCodecContext *audio_enc = NULL, *video_enc = NULL;
     int i;
     double framerate = 0.0;
-    int metadata_size_pos, data_size;
+    int64_t metadata_size_pos, data_size;
     AVDictionaryEntry *tag = NULL;
 
     for(i=0; i<s->nb_streams; i++){