diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-25 15:38:08 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-25 15:38:08 +0000 |
commit | 7d29785ddf8da6633e8633dc79b136e4cb19c995 (patch) | |
tree | 62fbca0aedafe41c2c51e9368982d1f33acaf49f /libmpdemux | |
parent | d7d2ea1551dca050d509bbe519d74df184d24ab3 (diff) |
Fix -nosound and -novideo (bug #28)
Move audio fourcc assignement inside audio if()
Remove bogus VLB warning (codec missing, no demuxer problem)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12897 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_nsv.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libmpdemux/demux_nsv.c b/libmpdemux/demux_nsv.c index 5b2a96d936..1cc9076792 100644 --- a/libmpdemux/demux_nsv.c +++ b/libmpdemux/demux_nsv.c @@ -210,25 +210,18 @@ demuxer_t* demux_open_nsv ( demuxer_t* demuxer ) // bytes 8-11 audio codec fourcc // PCM fourcc needs extra parsing for every audio chunk, yet to implement - if( strncmp(hdr+8,"NONE", 4)){//&&strncmp(hdr+8,"VLB ", 4)){ + if((demuxer->audio->id != -2) && strncmp(hdr+8,"NONE", 4)){//&&strncmp(hdr+8,"VLB ", 4)){ sh_audio = new_sh_audio ( demuxer, 0 ); demuxer->audio->sh = sh_audio; sh_audio->format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]); sh_audio->ds = demuxer->audio; + priv->a_format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]); } - priv->a_format=mmioFOURCC(hdr[8],hdr[9],hdr[10],hdr[11]); - // !!!!!!!!!!!!!!!!!!!! - // RemoveMe!!! This is just to avoid lot of bugreports! - // !!!!!!!!!!!!!!!!!!!! - if(priv->a_format==mmioFOURCC('V','L','B',' ')) - mp_msg(MSGT_DEMUX,MSGL_WARN,"demux_nsv: VLB audio does not work yet. Expect problems.\n"); - - // store hdr fps priv->fps=hdr[16]; - if (strncmp(hdr+4,"NONE", 4)) { + if ((demuxer->video->id != -2) && strncmp(hdr+4,"NONE", 4)) { /* Create a new video stream header */ sh_video = new_sh_video ( demuxer, 0 ); |