[FFmpeg-devel] [PATCH] segfault in rtp_parse_open() for MPEG TS streams
Thu Aug 21 16:06:55 CEST 2008
Arnoud Zwemmer wrote:
> 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.
Sorry about that problem... I've never been able to test the "TS in RTP"
case; is it possible to reproduce this segfault by using the "ffmpeg"
program? If yes, how?
Your patch surely fixes the problem, but maybe there is a simpler solution:
for example, it seems to me that "st == NULL" is equivalent to
Does the attached patch work for you?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 874 bytes
Desc: not available
More information about the ffmpeg-devel