segfault fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12464 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2004-05-12 22:48:15 +00:00
parent 616ae6dc6c
commit 35439875eb
1 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,10 @@ int demux_open_lavf(demuxer_t *demuxer){
register_protocol(&mp_protocol); register_protocol(&mp_protocol);
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3); if(demuxer->stream->url)
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
else
strncpy(mp_filename + 3, "foobar.dummy", sizeof(mp_filename)-3);
url_fopen(&priv->pb, mp_filename, URL_RDONLY); url_fopen(&priv->pb, mp_filename, URL_RDONLY);