diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-26 15:15:38 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-26 15:15:38 +0000 |
commit | 1b7f873c9ced3daa64bfc9c6ad066aeea09e0447 (patch) | |
tree | a5fe45f4740edc806bd3e565bc556bc9747d1686 /libmpdemux/demux_nuv.c | |
parent | 0801ea46a6175cd36225b848d0f53c6486435424 (diff) | |
download | mpv-1b7f873c9ced3daa64bfc9c6ad066aeea09e0447.tar.bz2 mpv-1b7f873c9ced3daa64bfc9c6ad066aeea09e0447.tar.xz |
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15818 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_nuv.c')
-rw-r--r-- | libmpdemux/demux_nuv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_nuv.c b/libmpdemux/demux_nuv.c index 7e3a6cc340..ce754c51eb 100644 --- a/libmpdemux/demux_nuv.c +++ b/libmpdemux/demux_nuv.c @@ -301,7 +301,8 @@ int nuv_check_file ( demuxer_t* demuxer ) mp_msg ( MSGT_DEMUX, MSGL_V, "Checking for NuppelVideo\n" ); - stream_read(demuxer->stream,(char*)&ns,sizeof(ns)); + if(stream_read(demuxer->stream,(char*)&ns,sizeof(ns)) != sizeof(ns)) + return 0; if ( strncmp ( ns.finfo, "NuppelVideo", 12 ) ) return 0; /* Not a NuppelVideo file */ |