mpv/libmpdemux
wm4 b2ba73c7b6 demuxer: fix crash with demux_rawvideo
rawvideo is a rather primitive demuxer that doesn't implement track
switching. The problem was that during track switching the demuxer
implementations normally set the stream IDs in order to do the switch,
and since rawvideo obviously didn't do that, so the current stream in
ds->sh / demuxer->video->sh was set to NULL. (The frontend always
assumes track switching is successful, which is a reasonable
assumption - failing due to missing video codecs etc. is in separate
codepaths.) Later, demux_rawvideo_fill_buffer() in demux_rawvideo.c
tried to dereference the NULL stream and crashed.

Other trivial single-stream demuxers worked fine, because they didn't
try to access ds->sh.
2012-09-23 15:15:43 +02:00
..
asf.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
asfguid.h asfguid.h: Use AV_RL32 also in x86 2010-11-02 04:14:20 +02:00
asfheader.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
asfheader.h Add header for asf_check_header, read_asf_header; avoids forward declarations. 2010-02-17 23:45:01 +00:00
aviheader.c aviheader.c: silence a warning 2012-02-29 02:49:48 +02:00
aviheader.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
aviprint.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
aviprint.h Declare public function print_vprp() in aviprint.h. 2010-02-21 23:36:36 +00:00
demux_asf.c demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
demux_avi.c Remove some demuxers and decoders 2012-07-30 22:14:32 +02:00
demux_cue.c core: add new support for reading .cue files 2012-01-18 04:25:19 +01:00
demux_edl.c EDL: add support for new EDL file format 2011-04-05 06:26:17 +03:00
demux_gif.c demux_gif: change format of packets to make it work again 2012-08-20 15:36:05 +02:00
demux_lavf.c demuxer: do not set sub_utf8 option 2012-09-18 21:04:46 +02:00
demux_mf.c demux_mf: add j2c and jpc as jpeg2k, add tiff extension as tif image 2012-08-03 01:43:44 +02:00
demux_mkv.c demuxer: remove ImageDesc field 2012-09-18 21:04:46 +02:00
demux_mng.c vd_ffmpeg, demux_mng: allow general raw formats, fix MNG demuxer 2012-08-20 15:36:04 +02:00
demux_mpg.c libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
demux_packet.h demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
demux_rawaudio.c rawaudio: use mplayer audio format for format option 2012-09-18 21:07:29 +02:00
demux_rawvideo.c Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
demux_ts.c libmpdemux: add back demux_ts 2012-09-18 21:07:30 +02:00
demux_ts.h libmpdemux: add back demux_ts 2012-09-18 21:07:30 +02:00
demuxer.c demuxer: fix crash with demux_rawvideo 2012-09-23 15:15:43 +02:00
demuxer.h libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
ebml.c Update Libav API uses 2012-02-01 22:46:27 +02:00
ebml.h demux_mkv: simplify subtitle type recognition 2011-03-31 03:44:37 +03:00
extension.c libmpdemux: remove demux_real, demux_viv, demux_audio 2012-08-20 15:36:02 +02:00
matroska.h demux_mkv: support Blu-ray subtitles 2011-03-31 03:44:37 +03:00
mf.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
mf.h Add standard license header to all files in libmpdemux. 2009-05-08 21:51:13 +00:00
mp3_hdr.c libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
mp3_hdr.h libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
mp_taglists.c demux_lavf: use Libav RIFF tag lists directly 2012-02-01 22:46:27 +02:00
mp_taglists.h demux_lavf: use Libav RIFF tag lists directly 2012-02-01 22:46:27 +02:00
mpeg_hdr.c libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
mpeg_hdr.h libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
ms_hdr.h Change <endian.h> include to <sys/types.h> 2012-07-31 23:37:56 +02:00
parse_es.c libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
parse_es.h libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00
stheader.h libmpdemux: add back demux_ts 2012-09-18 21:07:30 +02:00
video.c libmpdemux: add back demux_mpg 2012-09-18 21:07:30 +02:00