changeset 20141:bd3afd5a2e48

Fix misdetection of http://samples.mplayerhq.hu/tta/tivo_misdetect.tta as TiVo file
author reimar
date Tue, 10 Oct 2006 19:21:33 +0000
parents 1861d40674ca
children 65c6e0d2d935
files libmpdemux/demux_ty.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Tue Oct 10 15:01:11 2006 +0000
+++ b/libmpdemux/demux_ty.c	Tue Oct 10 19:21:33 2006 +0000
@@ -1211,11 +1211,11 @@
      recPtr += 16;
    }
 
-   if ( errorHeader > 0 )
+   if ( errorHeader > 0 || invalidType > 0 )
    {
       mp_msg( MSGT_DEMUX, MSGL_DBG3, 
-         "ty:Error Check - Records %d, Parsed %d, Errors %d\n",
-         numberRecs, recordsDecoded, errorHeader );
+         "ty:Error Check - Records %d, Parsed %d, Errors %d + %d\n",
+         numberRecs, recordsDecoded, errorHeader, invalidType );
 
       // Invalid MPEG ES Size Check
       if ( errorHeader > ( numberRecs / 2 ) )