Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1754 closed defect (fixed)

Crash in video stream when encoder returns zero length payload

Reported by: nanang Owned by: nanang
Priority: normal Milestone: release-2.3
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

In put_frame() in vid_stream.c, when the encoder returns PJ_SUCCESS but with zero length payload (frame_out.size == 0), the pjmedia_rtp_encode_rtp() will just return early without initializing the RTP header, and next, copying the RTP header to sending buffer will throw access violation.

Thanks Wolfgang Wallhäuser for the report and the fix.

Change History (2)

comment:1 Changed 6 years ago by nanang

  • Resolution set to fixed
  • Status changed from new to closed

In 4805:

Fix #1754: Fixed crash in video stream when encoder returns zero payload length.

comment:2 Changed 6 years ago by nanang

In 4809:

Re #1754: Minor update, replaced comment marks.

Note: See TracTickets for help on using tickets.