mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
FLV: Drop packet if header flag is not matched. v5.0.109 (#3306)
1. Ignore audo or video packets if FLV header disable it. 2. Run: Add regression test config and run for IDEA. 3. Test: Refine regression test to allow no audio/video for FLV 4. Config: Whether drop packet if not match header.
This commit is contained in:
parent
35185cf844
commit
4551200e95
13 changed files with 191 additions and 42 deletions
|
@ -1450,6 +1450,12 @@ vhost http.remux.srs.com {
|
|||
# Overwrite by env SRS_VHOST_HTTP_REMUX_FAST_CACHE for all vhosts.
|
||||
# default: 0
|
||||
fast_cache 30;
|
||||
# Whether drop packet if not match header. For example, there is has_audio and has video flag in FLV header, if
|
||||
# this is set to on and has_audio is false, then SRS will drop audio packets when got audio packets. Generally
|
||||
# it should work, but sometimes you might need SRS to keep packets even when FLV header is set to false.
|
||||
# Overwrite by env SRS_VHOST_HTTP_REMUX_DROP_IF_NOT_MATCH for all vhosts.
|
||||
# default: on
|
||||
drop_if_not_match on;
|
||||
# the stream mount for rtmp to remux to live streaming.
|
||||
# typical mount to [vhost]/[app]/[stream].flv
|
||||
# the variables:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue