diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-06-08 14:32:07 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-08-16 20:24:20 +0200 |
commit | 7f5bf4fbaf1f2142547321a16358f9871fabdcc6 (patch) | |
tree | b89e092c5caa8b64ae3f147cb5fafdc34ec76145 /libavformat/flvenc.c | |
parent | 5759cce70db528c4feef48e480747e690a500b48 (diff) | |
download | ffmpeg-7f5bf4fbaf1f2142547321a16358f9871fabdcc6.tar.gz |
flvenc: use int64_t to store offsets
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>
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 36f7e1f46c..f3017d7563 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -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++){ |