|
@@ -282,7 +282,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 */
|
|
|
avio_w8(pb, AMF_DATA_TYPE_MIXEDARRAY);
|
|
avio_w8(pb, AMF_DATA_TYPE_MIXEDARRAY);
|
|
|
metadata_count_pos = avio_tell(pb);
|
|
metadata_count_pos = avio_tell(pb);
|
|
|
- metadata_count = 5 * !!video_enc +
|
|
|
|
|
|
|
+ metadata_count = 4 * !!video_enc +
|
|
|
5 * !!audio_enc +
|
|
5 * !!audio_enc +
|
|
|
1 * !!data_enc +
|
|
1 * !!data_enc +
|
|
|
2; // +2 for duration and file size
|
|
2; // +2 for duration and file size
|
|
@@ -308,6 +308,7 @@ static int flv_write_header(AVFormatContext *s)
|
|
|
if (framerate != 0.0) {
|
|
if (framerate != 0.0) {
|
|
|
put_amf_string(pb, "framerate");
|
|
put_amf_string(pb, "framerate");
|
|
|
put_amf_double(pb, framerate);
|
|
put_amf_double(pb, framerate);
|
|
|
|
|
+ metadata_count++;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
put_amf_string(pb, "videocodecid");
|
|
put_amf_string(pb, "videocodecid");
|