1
0
Fork 0
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:
winlin 2015-06-06 21:23:57 +08:00
parent 679b4317d8
commit a1dd734318
4 changed files with 42 additions and 1 deletions

View file

@ -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);
};
/**