mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15818 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0801ea46a6
commit
1b7f873c9c
@ -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 */
|
||||
|
@ -30,7 +30,9 @@ int y4m_check_file(demuxer_t* demuxer){
|
||||
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "Checking for YUV4MPEG2\n");
|
||||
|
||||
stream_read(demuxer->stream, buf, 9);
|
||||
if(stream_read(demuxer->stream, buf, 9)!=9)
|
||||
return 0;
|
||||
|
||||
buf[9] = 0;
|
||||
|
||||
if (strncmp("YUV4MPEG2", buf, 9) && strncmp("YUV4MPEG ", buf, 9)) {
|
||||
|
Loading…
Reference in New Issue
Block a user