[MPlayer-cvslog] r24492 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Fri Sep 14 20:58:32 CEST 2007


Author: reimar
Date: Fri Sep 14 20:58:32 2007
New Revision: 24492

Log:
Reduce code duplication


Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Fri Sep 14 20:58:32 2007
@@ -938,35 +938,16 @@ static int demux_ty_fill_buffer( demuxer
 				   ( demux->filepos + offset ), tivo->lastVideoPTS );
 		}
       // ================================================================
-      // Found a 0x03 on Droid's TiVo, I have no idea what it is
-      // ================================================================
-		else if ( type == 0x03 )
-		{
-         if ( size > 0 && size + offset <= CHUNKSIZE )
-            offset += size;
-		}
-      // ================================================================
-      // Found a 0x03 on Hermit's TiVo, I have no idea what it is
-      // ================================================================
-		else if ( type == 0x03 )
-		{
-         if ( size > 0 && size + offset <= CHUNKSIZE )
-            offset += size;
-		}
-      // ================================================================
       // Unknown
       // ================================================================
-		else if ( type == 0x05 )
-		{
-         if ( size > 0 && size + offset <= CHUNKSIZE )
-            offset += size;
-		}
 		else
 		{
          if ( size > 0 && size + offset <= CHUNKSIZE )
             offset += size;
+         if (type != 3 && type != 5) {
          mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:Invalid Type %x\n", type );
 			invalidType++;
+         }
 		}
      recPtr += 16;
    }



More information about the MPlayer-cvslog mailing list