1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix the bug of flv stream, metadata type should be 18

This commit is contained in:
winlin 2015-03-10 17:04:02 +08:00
parent 0ff49fd299
commit 5c3c38684b
4 changed files with 7 additions and 5 deletions

View file

@ -394,7 +394,7 @@ int SrsFlvStreamEncoder::write_video(int64_t timestamp, char* data, int size)
int SrsFlvStreamEncoder::write_metadata(int64_t timestamp, char* data, int size)
{
return enc->write_metadata(timestamp, data, size);
return enc->write_metadata(SrsCodecFlvTagScript, data, size);
}
bool SrsFlvStreamEncoder::has_cache()