changeset 17420:a9e2922e91fd

suppress error message at eof
author reimar
date Tue, 17 Jan 2006 20:45:51 +0000
parents 433e35de3b10
children e8e2d7eab501
files libmpdemux/parse_es.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/parse_es.c	Tue Jan 17 20:25:42 2006 +0000
+++ b/libmpdemux/parse_es.c	Tue Jan 17 20:45:51 2006 +0000
@@ -25,6 +25,7 @@
   if (!videobuf_code_len) {
   int skipped=0;
     if (!demux_pattern_3(ds, NULL, MAX_SYNCLEN, &skipped, 0x100)) {
+      if (skipped == MAX_SYNCLEN)
       mp_msg(MSGT_DEMUXER, MSGL_ERR, "parse_es: could not sync video stream!\n", skipped);
       goto eof_out;
     }