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 (#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
b352fd0cfe
commit
bc0a516fd1
7 changed files with 76 additions and 67 deletions
|
@ -196,5 +196,12 @@ extern srs_error_t srs_ioutil_read_all(ISrsReader* in, std::string& content);
|
|||
extern utsname* srs_get_system_uname_info();
|
||||
#endif
|
||||
|
||||
// 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);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue