summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_ty.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-14 18:58:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-14 18:58:32 +0000
commit6b7b78b9a8cc4bd40d6b4e5b35212bad6bc5d6b3 (patch)
tree3629c7904369b364246a01b89b5001cc268e9b2f /libmpdemux/demux_ty.c
parentc30f384128772032c37dcd0344daeab644eb2d9a (diff)
downloadmpv-6b7b78b9a8cc4bd40d6b4e5b35212bad6bc5d6b3.tar.bz2
mpv-6b7b78b9a8cc4bd40d6b4e5b35212bad6bc5d6b3.tar.xz
Reduce code duplication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24492 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ty.c')
-rw-r--r--libmpdemux/demux_ty.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c
index 01e200716c..bf8a32eb3b 100644
--- a/libmpdemux/demux_ty.c
+++ b/libmpdemux/demux_ty.c
@@ -938,35 +938,16 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
( 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;
}