Mercurial > libavformat.hg
diff flvenc.c @ 5050:3769dc8df347 libavformat
Fix onMetaData property count in flv files (issue 1206).
Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail
author | cehoyos |
---|---|
date | Sat, 20 Jun 2009 12:52:48 +0000 |
parents | 1ce2aaf9c918 |
children | f2828e9ca5b6 |
line wrap: on
line diff
--- a/flvenc.c Sat Jun 20 09:00:12 2009 +0000 +++ b/flvenc.c Sat Jun 20 12:52:48 2009 +0000 @@ -200,7 +200,7 @@ /* 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);