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
asfheader.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
asfheader.h
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
aviprint.h
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
demux_edl.c
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
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
ebml.h
extension.c libmpdemux: remove demux_real, demux_viv, demux_audio 2012-08-20 15:36:02 +02:00
matroska.h
mf.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
mf.h
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
mp_taglists.h
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