[FFmpeg-soc] [soc]: r5475 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Tue Dec 1 21:42:19 CET 2009
Author: alexc
Date: Tue Dec 1 21:42:18 2009
New Revision: 5475
Log:
Remove some unsigned type qualifiers. They make comparisons to negative values
not work as needed and no integer divides are used on these values.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Mon Nov 30 20:14:48 2009 (r5474)
+++ aac-sbr/aacsbr.c Tue Dec 1 21:42:18 2009 (r5475)
@@ -841,10 +841,10 @@ int ff_decode_sbr_extension(AACContext *
static int sbr_time_freq_grid(AACContext *ac, SpectralBandReplication *sbr,
SBRData *ch_data, int ch)
{
- unsigned int abs_bord_lead = ch_data->bs_frame_class >= 2 ? ch_data->bs_var_bord[0] : 0;
+ int abs_bord_lead = ch_data->bs_frame_class >= 2 ? ch_data->bs_var_bord[0] : 0;
// frameLengthFlag ? 15 : 16; 960 sample length frames unsupported; this value is numTimeSlots
- unsigned int abs_bord_trail = (ch_data->bs_frame_class & 1 ? ch_data->bs_var_bord[1] : 0) + 16;
- unsigned int n_rel_lead, n_rel_trail;
+ int abs_bord_trail = (ch_data->bs_frame_class & 1 ? ch_data->bs_var_bord[1] : 0) + 16;
+ int n_rel_lead, n_rel_trail;
int i;
if (ch_data->bs_frame_class == FIXFIX) {
More information about the FFmpeg-soc
mailing list