1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-14 19:11:53 +00:00

fr->sampling_frequency limitation (thanx to pl <p_l@tfz.net>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1167 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-06-19 22:07:19 +00:00
parent 7b3bfd129c
commit 6c8b41d71a

View File

@ -196,6 +196,8 @@ LOCAL int decode_header(struct frame *fr,unsigned long newhead){
else
fr->sampling_frequency = ((newhead>>10)&0x3) + (fr->lsf*3);
if(fr->sampling_frequency>8) return FALSE; // valid: 0..8
fr->error_protection = ((newhead>>16)&0x1)^0x1;
fr->bitrate_index = ((newhead>>12)&0xf);
fr->padding = ((newhead>>9)&0x1);