Commit 3f3f3ba7 authored by Yoshihisa Uchida's avatar Yoshihisa Uchida Committed by Carl Eugen Hoyos

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
parent 4c7615c4
...@@ -200,7 +200,7 @@ static int flv_write_header(AVFormatContext *s) ...@@ -200,7 +200,7 @@ static int flv_write_header(AVFormatContext *s)
/* mixed array (hash) with size and string/type/data tuples */ /* mixed array (hash) with size and string/type/data tuples */
put_byte(pb, AMF_DATA_TYPE_MIXEDARRAY); 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"); put_amf_string(pb, "duration");
flv->duration_offset= url_ftell(pb); flv->duration_offset= url_ftell(pb);
......
...@@ -197,7 +197,7 @@ stddev: 1050.00 PSNR: 35.90 bytes: 1060620/ 1058444 ...@@ -197,7 +197,7 @@ stddev: 1050.00 PSNR: 35.90 bytes: 1060620/ 1058444
266296 ./tests/data/a-adpcm_yam.wav 266296 ./tests/data/a-adpcm_yam.wav
2f73107dafef6db42e545f9e466d3f05 *./tests/data/adpcm_yam.rotozoom.out.wav 2f73107dafef6db42e545f9e466d3f05 *./tests/data/adpcm_yam.rotozoom.out.wav
stddev:18302.45 PSNR: 11.07 bytes: 1065004/ 1058444 stddev:18302.45 PSNR: 11.07 bytes: 1065004/ 1058444
c0c2a66f75ea32ef6656ac7cdd08023c *./tests/data/a-adpcm_swf.flv 42d4639866ed4d692eaf126228a4fa2a *./tests/data/a-adpcm_swf.flv
269166 ./tests/data/a-adpcm_swf.flv 269166 ./tests/data/a-adpcm_swf.flv
628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.rotozoom.out.wav 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.rotozoom.out.wav
stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444 stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444
......
...@@ -197,7 +197,7 @@ stddev: 1050.00 PSNR: 35.90 bytes: 1060620/ 1058444 ...@@ -197,7 +197,7 @@ stddev: 1050.00 PSNR: 35.90 bytes: 1060620/ 1058444
266296 ./tests/data/a-adpcm_yam.wav 266296 ./tests/data/a-adpcm_yam.wav
2f73107dafef6db42e545f9e466d3f05 *./tests/data/adpcm_yam.vsynth.out.wav 2f73107dafef6db42e545f9e466d3f05 *./tests/data/adpcm_yam.vsynth.out.wav
stddev:18302.45 PSNR: 11.07 bytes: 1065004/ 1058444 stddev:18302.45 PSNR: 11.07 bytes: 1065004/ 1058444
c0c2a66f75ea32ef6656ac7cdd08023c *./tests/data/a-adpcm_swf.flv 42d4639866ed4d692eaf126228a4fa2a *./tests/data/a-adpcm_swf.flv
269166 ./tests/data/a-adpcm_swf.flv 269166 ./tests/data/a-adpcm_swf.flv
628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.vsynth.out.wav 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.vsynth.out.wav
stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444 stddev: 933.65 PSNR: 36.92 bytes: 1065004/ 1058444
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment