summaryrefslogtreecommitdiffstats
path: root/audio/amp/files/patch-position.c
blob: 2d6a169401fc3a9bcd617cc90f91d76e29f94999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- position.c	Sat May 31 14:47:58 1997
+++ position.c	Wed Apr 13 00:21:47 2005
@@ -40,7 +40,7 @@
                         }
 
 	        bitrate=t_bitrate[tmp.ID][3-tmp.layer][tmp.bitrate_index];
-        	fs=t_sampling_frequency[tmp.ID][tmp.sampling_frequency];		
+        	fs=t_sampling_frequency[tmp.IDex][tmp.ID][tmp.sampling_frequency];		
 	        if (tmp.ID) mean_frame_size=144000*bitrate/fs;
 	        else mean_frame_size=72000*bitrate/fs;
 		fillbfr(mean_frame_size + tmp.padding_bit - hsize);
@@ -73,7 +73,7 @@
 		 * so we have to go back one frame + 4 bytes + 1 byte (in case padding was used).
 		 */
 	        bitrate=t_bitrate[tmp.ID][3-tmp.layer][tmp.bitrate_index];
-        	fs=t_sampling_frequency[tmp.ID][tmp.sampling_frequency];		
+        	fs=t_sampling_frequency[tmp.IDex][tmp.ID][tmp.sampling_frequency];		
 	        if (tmp.ID) mean_frame_size=144000*bitrate/fs;
 	        else mean_frame_size=72000*bitrate/fs;
 
OpenPOWER on IntegriCloud