Mercurial > libavformat.hg
changeset 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 | d8613bee3863 |
children | d9cd5562f211 |
files | flvenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);