changeset 15819:dd23cdecf060

10l
author faust3
date Sun, 26 Jun 2005 15:32:09 +0000
parents c1eb194d56e0
children 0ff819c37e88
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sun Jun 26 15:21:27 2005 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Jun 26 15:32:09 2005 +0000
@@ -112,7 +112,8 @@
 
     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;