[FFmpeg-devel] Fix a crash when using some rtsp streams.
wallak at free.fr
wallak
Sun Mar 21 11:48:33 CET 2010
Here is a fix required where trying to access some rtsp streams. The problematic
condition is a NULL avpd.filename pointer that must be checked before any
operation.
Best Regards,
Wallak.
--- mplayer-20100320-r30941/libmpdemux/demux_lavf.c.orig 2010-03-20
02:33:54.000000000 +0100
+++ mplayer-20100320-r30941/libmpdemux/demux_lavf.c 2010-03-21
02:02:27.000000000 +0100
@@ -165,8 +165,7 @@
}
probe_data_size += read_size;
avpd.filename= demuxer->stream->url;
- if (!strncmp(avpd.filename, "ffmpeg://", 9))
- avpd.filename += 9;
+ if (avpd.filename != NULL) { if (!strncmp(avpd.filename, "ffmpeg://", 9))
avpd.filename += 9; }
avpd.buf_size= probe_data_size;
priv->avif= av_probe_input_format(&avpd, probe_data_size > 0);
More information about the ffmpeg-devel
mailing list