Commit b07d24a2 authored by michael's avatar michael

10l (missing overflow check)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3908 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c8525425
...@@ -231,6 +231,9 @@ static inline int l3_unscale(int value, int exponent) ...@@ -231,6 +231,9 @@ static inline int l3_unscale(int value, int exponent)
#if FRAC_BITS <= 15 #if FRAC_BITS <= 15
if (e > 31) if (e > 31)
e = 31; e = 31;
#else
if (e > 63)
e = 63;
#endif #endif
m = table_4_3_value[value]; m = table_4_3_value[value];
#if FRAC_BITS <= 15 #if FRAC_BITS <= 15
...@@ -2137,11 +2140,11 @@ void sample_dump(int fnum, int32_t *tab, int n) ...@@ -2137,11 +2140,11 @@ void sample_dump(int fnum, int32_t *tab, int n)
if (fnum == 0) { if (fnum == 0) {
static int pos = 0; static int pos = 0;
printf("pos=%d\n", pos); av_log(NULL, AV_LOG_DEBUG, "pos=%d\n", pos);
for(i=0;i<n;i++) { for(i=0;i<n;i++) {
printf(" %0.4f", (double)tab[i] / FRAC_ONE); av_log(NULL, AV_LOG_DEBUG, " %0.4f", (double)tab[i] / FRAC_ONE);
if ((i % 18) == 17) if ((i % 18) == 17)
printf("\n"); av_log(NULL, AV_LOG_DEBUG, "\n");
} }
pos += n; pos += n;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment