Skip to content

rtsp: bump buf after rtsp_filter_rtp()#21563

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/rtsp-buf
Closed

rtsp: bump buf after rtsp_filter_rtp()#21563
bagder wants to merge 1 commit into
masterfrom
bagder/rtsp-buf

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented May 12, 2026

Reported-by: Andrew Nesbit

Reported-by: Andrew Nesbit
@github-actions github-actions Bot added the RTSP label May 12, 2026
@bagder bagder marked this pull request as ready for review May 12, 2026 09:57
@bagder bagder requested a review from Copilot May 12, 2026 09:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes RTSP interleaved RTP parsing in lib/rtsp.c by correctly advancing the input buffer after rtsp_filter_rtp() reports how many bytes it consumed, preventing already-consumed bytes from being processed/written again.

Changes:

  • Advance buf by consumed after the post-header rtsp_filter_rtp() call.
  • Keep buf/blen bookkeeping consistent across both RTP-filtering call sites in rtsp_rtp_write_resp().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in cb4395b May 12, 2026
@bagder bagder deleted the bagder/rtsp-buf branch May 12, 2026 10:39
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Reported-by: Andrew Nesbit
Closes curl#21563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants