mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
5759cce70d
commit
7f5bf4fbaf
|
@ -179,7 +179,7 @@ static int flv_write_header(AVFormatContext *s)
|
||||||
AVCodecContext *audio_enc = NULL, *video_enc = NULL;
|
AVCodecContext *audio_enc = NULL, *video_enc = NULL;
|
||||||
int i;
|
int i;
|
||||||
double framerate = 0.0;
|
double framerate = 0.0;
|
||||||
int metadata_size_pos, data_size;
|
int64_t metadata_size_pos, data_size;
|
||||||
AVDictionaryEntry *tag = NULL;
|
AVDictionaryEntry *tag = NULL;
|
||||||
|
|
||||||
for(i=0; i<s->nb_streams; i++){
|
for(i=0; i<s->nb_streams; i++){
|
||||||
|
|
Loading…
Reference in New Issue