mirror of https://github.com/mpv-player/mpv
Better check for non-broken NSVf-header to avoid incorrect detection.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20486 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ef45c3167f
commit
8777fbb596
|
@ -170,6 +170,8 @@ static demuxer_t* demux_open_nsv ( demuxer_t* demuxer )
|
|||
|
||||
// NSVs
|
||||
stream_read(demuxer->stream,hdr,17);
|
||||
if (stream_eof(demuxer->stream) || strncmp(hdr, "NSVs", 4))
|
||||
return 0;
|
||||
}
|
||||
|
||||
// dummy debug message
|
||||
|
|
Loading…
Reference in New Issue