mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-10 03:32:22 +08:00
Fix onMetaData property count in flv files (issue 1206).
Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail Originally committed as revision 19236 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Carl Eugen Hoyos

parent
4c7615c40e
commit
3f3f3ba799
@ -200,7 +200,7 @@ static int flv_write_header(AVFormatContext *s)
|
||||
|
||||
/* mixed array (hash) with size and string/type/data tuples */
|
||||
put_byte(pb, AMF_DATA_TYPE_MIXEDARRAY);
|
||||
put_be32(pb, 5*!!video_enc + 4*!!audio_enc + 2); // +2 for duration and file size
|
||||
put_be32(pb, 5*!!video_enc + 5*!!audio_enc + 2); // +2 for duration and file size
|
||||
|
||||
put_amf_string(pb, "duration");
|
||||
flv->duration_offset= url_ftell(pb);
|
||||
|
Reference in New Issue
Block a user