[FFmpeg-devel] [PATCH] segfault in rtp_parse_open() for MPEG TS streams
Arnoud Zwemmer
arnoud.zwemmer
Fri Aug 22 14:57:59 CEST 2008
Hi Luca,
Yes, that works for me, seems perfect. Agreed "st==NULL" is probably
equivalent to "!strcmp(ff_rtp_enc_name(payload_type), "MP2T")" and then
yours is a better solution.
Thanks,
Arnoud.
Luca Abeni wrote:
> Hi Arnoud,
>
> Arnoud Zwemmer wrote:
>> 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.
>
> 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
> "!strcmp(ff_rtp_enc_name(payload_type), "MP2T")"
>
> Does the attached patch work for you?
>
>
> Thanks,
> Luca
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list