demux_lavf: drop "mp:" prefix from filename given to lavf
commitb6fecff88ff761f2f80470d8c12f7999b95b7b08
authorwm4 <wm4@nowhere>
Fri, 30 Nov 2012 16:59:55 +0000 (30 17:59 +0100)
committerUoti Urpala <uau@mplayer2.org>
Mon, 3 Dec 2012 22:04:56 +0000 (4 00:04 +0200)
tree985dcb5214e4cf1504b1f65736d055b6013ab4d4
parent661a3500796f4dc2c4c0a9b074ce698f7a0987a1
demux_lavf: drop "mp:" prefix from filename given to lavf

Opening files with the libavformat AVISynth demuxer ("avs"/avisynth.c)
failed, because the filename we pass to avformat_open_input() was
prefixed with "mp:". Normally, the name doesn't matter, because lavf
reads data with the stream interface. The AVISynth demuxer can't use
this, because the Avisynth API (apparently) can't read scripts from
memory, and requires a filename.

The "mp:" prefix used to be required when mplayer's stream layer was
made available as protocol to ffmpeg. This was replaced by setting
custom stream callbacks in de4908b644 (svn commit 25499), but the
prefix wasn't removed. Since this prefix doesn't have any purpose
anymore and prevents AVS playback from functioning, remove it.
libmpdemux/demux_lavf.c