#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 11 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 11 years ago by nanang
In 4809:
Note: See
TracTickets for help on using
tickets.
In 4805: