Skip to content

Commit

Permalink
Rename slen{1,2}_table to avoid name collision with ffmpeg.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Apr 7, 2016
1 parent 3b62a39 commit 3695118
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/lib/l3bitstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ static void encodeMainData(shine_global_config *config)
for ( ch = 0; ch < config->wave.channels; ch++ )
{
gr_info *gi = &(si.gr[gr].ch[ch].tt);
unsigned slen1 = slen1_tab[ gi->scalefac_compress ];
unsigned slen2 = slen2_tab[ gi->scalefac_compress ];
unsigned slen1 = shine_slen1_tab[ gi->scalefac_compress ];
unsigned slen2 = shine_slen2_tab[ gi->scalefac_compress ];
int *ix = &config->l3_enc[ch][gr][0];

if ( gr == 0 || si.scfsi[ch][0] == 0 )
Expand Down
4 changes: 2 additions & 2 deletions src/lib/l3loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ int part2_length(int gr, int ch, shine_global_config *config)
bits = 0;

{
slen1 = slen1_tab[ gi->scalefac_compress ];
slen2 = slen2_tab[ gi->scalefac_compress ];
slen1 = shine_slen1_tab[ gi->scalefac_compress ];
slen2 = shine_slen2_tab[ gi->scalefac_compress ];

if ( !gr || !(config->side_info.scfsi[ch][0]) )
bits += (6 * slen1);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include "tables.h"

const int slen1_tab[16] = { 0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 };
const int slen2_tab[16] = { 0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3 };
const int shine_slen1_tab[16] = { 0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 };
const int shine_slen2_tab[16] = { 0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3 };

/* Valid samplerates and bitrates. */
const int samplerates[9] = {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include "types.h"

extern const int slen1_tab[16];
extern const int slen2_tab[16];
extern const int shine_slen1_tab[16];
extern const int shine_slen2_tab[16];

extern const int samplerates[9];
extern const int bitrates[16][4];
Expand Down

0 comments on commit 3695118

Please sign in to comment.