aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-06-08 14:32:07 +0000
committerReinhard Tartler <siretart@tauware.de>2011-09-26 19:26:30 +0200
commitfe3e7297fe56a383baca484dea2c0d603ae305f8 (patch)
tree532693b721ce1c0a3ac3032391993f1f9bd70e24
parent28321b777f76528b061646a3555d08b94ff667bc (diff)
downloadffmpeg-fe3e7297fe56a383baca484dea2c0d603ae305f8.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> (cherry picked from commit 7f5bf4fbaf1f2142547321a16358f9871fabdcc6) Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/flvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 487993cd9a..bd1a1f49fe 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -177,7 +177,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++){