Mercurial > mplayer.hg
changeset 24482:e5eb9ccd6679
Remove some commented-out debugging code
author | reimar |
---|---|
date | Fri, 14 Sep 2007 20:18:00 +0000 |
parents | 61222a7b1dbd |
children | e24dd407fb58 |
files | libmpdemux/demux_ty.c |
diffstat | 1 files changed, 2 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c Fri Sep 14 20:09:39 2007 +0000 +++ b/libmpdemux/demux_ty.c Fri Sep 14 20:18:00 2007 +0000 @@ -340,13 +340,7 @@ static void demux_ty_CopyToDemuxPacket( int type, TiVoInfo *tivo, demux_stream_t *ds, unsigned char *buffer, int size, off_t pos, float pts ) { - demux_packet_t *dp; - - // mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:Calling ds_add_packet() %7.1f\n", pts ); - // printf( "%x %x %x %x\n", - // buffer[ 0 ], buffer[ 1 ], buffer[ 2 ], buffer[ 3 ] ); - - dp = new_demux_packet( size ); + demux_packet_t *dp = new_demux_packet( size ); memcpy( dp->buffer, buffer, size ); if (pts != MP_NOPTS_VALUE) dp->pts = pts / 90000.0; @@ -446,9 +440,6 @@ filePos = demux->filepos; stream_seek( demux->stream, 0 ); - // mp_msg( MSGT_DEMUX, MSGL_DBG3, - // "ty:Reading a chunk %d\n", __LINE__ ); - readSize = stream_read( demux->stream, chunk, CHUNKSIZE ); if ( memcmp( chunk, TMF_SIG, sizeof( TMF_SIG ) ) == 0 ) @@ -616,16 +607,7 @@ { if ( size > 0 && size + offset <= CHUNKSIZE ) { - int esOffset1; -#if 0 - printf( "Video Chunk Header " ); - for( count = 0 ; count < 24 ; count++ ) - { - printf( "%2.2x ", chunk[ offset + count ] ); - } - printf( "\n" ); -#endif - esOffset1 = demux_ty_FindESHeader( ty_VideoPacket, &chunk[ offset ], + int esOffset1 = demux_ty_FindESHeader( ty_VideoPacket, &chunk[ offset ], size); if ( esOffset1 != -1 ) tivo->lastVideoPTS = get_ty_pts( @@ -648,15 +630,6 @@ { if ( size > 0 && size + offset <= CHUNKSIZE ) { -#if 0 - printf( "Audio Chunk Header " ); - for( count = 0 ; count < 24 ; count++ ) - { - printf( "%2.2x ", chunk[ offset + count ] ); - } - printf( "\n" ); -#endif - if( demux->audio->id == -1 ) { if ( nybbleType == 0x02 )