[FFmpeg-trac] #3721(avformat:new): crash on a valid rtp mpegts stream
FFmpeg
trac at avcodec.org
Tue Jun 17 14:23:44 CEST 2014
#3721: crash on a valid rtp mpegts stream
------------------------------------+------------------------------------
Reporter: lavv17 | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mpegts | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by lavv17):
{{{write_section_data}}} assumes {{{s->priv_data}}} to be
{{{MpegTSContext}}}. But {{{s->iformat}}} is still {{{ff_rtp_demuxer}}}
and {{{s->priv_data}}} is allocated as an {{{RTSPState}}}.
{{{
(gdb) fr 1
#1 0x00000000005589b4 in handle_packet (ts=ts at entry=0x7fd42c52bf80,
packet=packet at entry=0x7fd42c528168 "GWx\031") at
libavformat/mpegts.c:2095
2095 write_section_data(s, tss,
(gdb) p s->iformat
$4 = (struct AVInputFormat *) 0x1191060 <ff_rtp_demuxer>
}}}
BTW, {{{-f mpegts}}} prevents the crash, but the resulting file is not
correct, so it is not the solution.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3721#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list