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:
parent
26369de7a9
commit
8f09299308
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user