a52: CRC check for AC3 frames

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3892 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-12-30 04:44:20 +00:00
parent 5de470e9d0
commit a60c7a855f
1 changed files with 4 additions and 0 deletions

View File

@ -246,6 +246,10 @@ while(1){
sh_audio->samplerate=sample_rate;
sh_audio->i_bps=bit_rate/8;
demux_read_data(sh_audio->ds,sh_audio->a_in_buffer+7,length-7);
if(crc16_block(sh_audio->a_in_buffer+2,length-2)!=0)
mp_msg(MSGT_DECAUDIO,MSGL_STATUS,"a52: CRC check failed! \n");
return length;
}