[FFmpeg-devel] [PATCH] segfault in rtp_parse_open() for MPEG TS streams

Arnoud Zwemmer arnoud.zwemmer
Thu Aug 21 14:45:33 CEST 2008


Hi,

Revision 14045 of libavformat/rtpdec.c introduces a segmentation fault 
for MPEG-2 TS streams that get demuxed inside the rtp demux. Comment in 
code above rtp_parse_open() explicitly states that (AVStream *) st can 
be NULL, which now causes av_set_pts_info(s->st, 32, 1, 90000); to 
segfault on the NULL ptr.

Patch that checks st for non-NULL before calling av_set_pts_info() attached.

Thanks,

Arnoud.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpdec.patch
Type: text/x-diff
Size: 579 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080821/05f6a59d/attachment.patch>



More information about the ffmpeg-devel mailing list