[FFmpeg-soc] [soc]: r2266 - aac/aac.c
superdump
subversion at mplayerhq.hu
Fri May 30 14:12:29 CEST 2008
Author: superdump
Date: Fri May 30 14:12:28 2008
New Revision: 2266
Log:
Give more useful error messages depending on the case in question
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Fri May 30 14:12:28 2008
@@ -1083,6 +1083,7 @@ static int decode_scale_factor_data(AACC
int g, i, index;
int offset[3] = { global_gain, global_gain - 90, 100 };
int noise_flag = 1;
+ static const char *sf_str[3] = { "Global gain", "Noise gain", "Intensity stereo position" };
ics->intensity_present = 0;
for (g = 0; g < ics->num_window_groups; g++) {
for (i = 0; i < ics->max_sfb; i++) {
@@ -1100,7 +1101,7 @@ static int decode_scale_factor_data(AACC
offset[index] += get_vlc2(gb, ac->mainvlc.table, 7, 3) - 60;
if(offset[index] > 255) {
av_log(ac->avccontext, AV_LOG_ERROR,
- "Gain (%d) out of range", offset[index]);
+ "%s (%d) out of range", sf_str[index], offset[index]);
return -1;
}
if(index == 2)
More information about the FFmpeg-soc
mailing list