1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/audio/amp/files/patch-layer3.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

23 lines
800 B
C

--- layer3.c Mon Aug 18 09:42:17 1997
+++ layer3.c Wed Apr 13 00:21:47 2005
@@ -61,7 +61,7 @@
/* MPEG2 only has one granule
*/
bitrate=t_bitrate[header->ID][3-header->layer][header->bitrate_index];
- fs=t_sampling_frequency[header->ID][header->sampling_frequency];
+ fs=t_sampling_frequency[header->IDex][header->ID][header->sampling_frequency];
if (header->ID) mean_frame_size=144000*bitrate/fs;
else mean_frame_size=72000*bitrate/fs;
@@ -96,8 +96,8 @@
/* these two should go away
*/
- t_l=&t_b8_l[header->ID][header->sampling_frequency][0];
- t_s=&t_b8_s[header->ID][header->sampling_frequency][0];
+ t_l=&t_b8_l[header->IDex][header->ID][header->sampling_frequency][0];
+ t_s=&t_b8_s[header->IDex][header->ID][header->sampling_frequency][0];
/* debug/dump stuff
*/