Merge pull request #1246 from pkviet/onMeta

obs-outputs/flv: Fix ECMA array size
This commit is contained in:
Jim 2018-04-20 22:27:37 -07:00 committed by GitHub
commit 2ebcd49b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ static bool build_flv_meta_data(obs_output_t *context,
enc_str(&enc, end, "onMetaData");
*enc++ = AMF_ECMA_ARRAY;
enc = AMF_EncodeInt32(enc, end, a_idx == 0 ? 14 : 9);
enc = AMF_EncodeInt32(enc, end, a_idx == 0 ? 20 : 15);
enc_num_val(&enc, end, "duration", 0.0);
enc_num_val(&enc, end, "fileSize", 0.0);