1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01:00

Simplify IsValidAudioPacket

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24490 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-14 18:50:25 +00:00
parent 26369de7a9
commit 8f09299308

View File

@ -321,28 +321,21 @@ static int IsValidAudioPacket( int size, int *ptsOffset, int *ptsLen )
{
*ptsOffset = SERIES1_PTS_OFFSET;
*ptsLen = SERIES1_PTS_LENGTH;
break;
return 1;
}
}
if ( *ptsOffset == 0 )
{
for( count = 0 ; count < NUMBER_DIFFERENT_AUDIO_SIZES ; count++ )
{
if ( size == Series2AudioWithPTS[ count ] )
{
*ptsOffset = SERIES2_PTS_OFFSET;
*ptsLen = SERIES2_PTS_LENGTH;
break;
return 1;
}
}
}
if ( *ptsOffset == 0 )
{
mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:Tossing Audio Packet Size %d\n",
size );
return 0;
}
return 1;
}