mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support FFmpeg timecode, fix AMF0 parsing failed. v5.0.179 v6.0.77 (#3804)
Please see https://github.com/ossrs/srs/issues/3803 for detail: 1. When using FFmpeg with the `-map 0` option, there may be a 4-byte timecode in the AMF0 Data. 2. SRS should be able to handle this packet without causing a parsing error, as it's generally expected to be an AMF0 string, not a 4-byte timecode. 3. Disregard the timecode since SRS doesn't utilize it. See [Error submitting a packet to the muxer: Broken pipe, Error muxing a packet](https://trac.ffmpeg.org/ticket/10565) --------- Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
4362df743b
commit
6a4ace900d
8 changed files with 78 additions and 68 deletions
|
@ -677,13 +677,6 @@ extern bool srs_is_boolean(std::string str);
|
|||
// Dump summaries for /api/v1/summaries.
|
||||
extern void srs_api_dump_summaries(SrsJsonObject* obj);
|
||||
|
||||
// Dump string(str in length) to hex, it will process min(limit, length) chars.
|
||||
// Append seperator between each elem, and newline when exceed line_limit, '\0' to ignore.
|
||||
extern std::string srs_string_dumps_hex(const std::string& str);
|
||||
extern std::string srs_string_dumps_hex(const char* str, int length);
|
||||
extern std::string srs_string_dumps_hex(const char* str, int length, int limit);
|
||||
extern std::string srs_string_dumps_hex(const char* str, int length, int limit, char seperator, int line_limit, char newline);
|
||||
|
||||
// Get ENV variable, which may starts with $.
|
||||
// srs_getenv("EIP") is srs_getenv("$EIP")
|
||||
extern std::string srs_getenv(const std::string& key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue