mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #421, drop video for unkown RTMP header.
This commit is contained in:
parent
679b4317d8
commit
a1dd734318
4 changed files with 42 additions and 1 deletions
|
@ -222,6 +222,12 @@ public:
|
|||
* check codec aac.
|
||||
*/
|
||||
static bool audio_is_aac(char* data, int size);
|
||||
/**
|
||||
* check the video RTMP/flv header info,
|
||||
* @return true if video RTMP/flv header is ok.
|
||||
* @remark all type of audio is possible, no need to check audio.
|
||||
*/
|
||||
static bool video_is_acceptable(char* data, int size);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue