From 47eb55b6545c261af57acccef7d1516e4a77eede Mon Sep 17 00:00:00 2001 From: faust3 Date: Sun, 26 Jun 2005 15:32:09 +0000 Subject: [PATCH] 10l git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15820 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_lavf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index 13dbf3d21b..8f9632ea93 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -112,7 +112,8 @@ int lavf_check_file(demuxer_t *demuxer){ av_register_all(); - stream_read(demuxer->stream, buf, PROBE_BUF_SIZE); + if(stream_read(demuxer->stream, buf, PROBE_BUF_SIZE)!=PROBE_BUF_SIZE) + return 0; avpd.filename= demuxer->stream->url; avpd.buf= buf; avpd.buf_size= PROBE_BUF_SIZE;