diff options
author | Yoshihisa Uchida <yoshihisa.uchida@gmail.com> | 2009-06-20 16:52:48 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-06-20 16:52:48 +0400 |
commit | 3f3f3ba799587cfd27d6011b19784bc30864b32f (patch) | |
tree | 02a15f52e391b3270c1d9d2f242dc6cad5585a02 /libavformat/flvenc.c | |
parent | 4c7615c40e91c34fe42d71d734d8701f37be2c07 (diff) |
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
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 63accbb0cb..3ca1874cf1 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -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); |