freebsd-ports/audio/amp/files/patch-position.c
Roman Bogorodskiy 0393200356 - Update to 0.7.6
- Change pkg-descr to reflect the new patches changes
- Pass maintainership to submitter

PR:		79873
Submitted by:	Rodrigo Graeff <delphus@gmail.com>
2005-04-17 15:19:41 +00:00

20 lines
940 B
C

--- 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;