Skip to content

FLV: Drop packet if header flag is not matched. v5.0.109#3306

Merged
winlinvip merged 2 commits intoossrs:5.0releasefrom
winlinvip:feature/flv-drop-av
Dec 14, 2022
Merged

FLV: Drop packet if header flag is not matched. v5.0.109#3306
winlinvip merged 2 commits intoossrs:5.0releasefrom
winlinvip:feature/flv-drop-av

Conversation

@winlinvip
Copy link
Copy Markdown
Member

  1. Ignore audo or video packets if FLV header disable it.
  2. Reset has_audio if got some video frames but no audio frames.
  3. Reset has_video if got some audio frames but no video frames.
  4. Note that audio/video frames are not sequence header.

@xiaozhihong xiaozhihong self-requested a review December 14, 2022 08:05
@winlinvip winlinvip changed the title FLV: Reset has_audio or has_video if only sequence header. v5.0.109 FLV: Reset has_audio or has_video if only sequence header. Dec 14, 2022
@winlinvip winlinvip changed the title FLV: Reset has_audio or has_video if only sequence header. FLV: Drop packet if header flag is not matched. v5.0.109 Dec 14, 2022
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.
@winlinvip winlinvip merged commit 4551200 into ossrs:5.0release Dec 14, 2022
winlinvip added a commit that referenced this pull request Dec 18, 2022
1. SRT: Fix srt to rtmp crash when sps or pps empty. v5.0.112 (#3323)
2. GB28181: Fix memory overlap for small packets. v5.0.111 (#3315)
3. FLV: Support set default has_av and disable guessing. v5.0.110 (#3311)
4. FLV: Drop packet if header flag is not matched. v5.0.109 (#3306)
5. FLV: Reset has_audio or has_video if only sequence header. (#3310)
winlinvip added a commit that referenced this pull request Dec 18, 2022
1. SRT: Fix srt to rtmp crash when sps or pps empty. v5.0.112 (#3323)
2. GB28181: Fix memory overlap for small packets. v5.0.111 (#3315)
3. FLV: Support set default has_av and disable guessing. v5.0.110 (#3311)
4. FLV: Drop packet if header flag is not matched. v5.0.109 (#3306)
5. FLV: Reset has_audio or has_video if only sequence header. (#3310)
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TransByAI Translated by AI/GPT.

2 participants