]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aacdec_fixed.c
lavf/movenc: Fail when codec tag is invalid for format
[ffmpeg] / libavcodec / aacdec_fixed.c
index 5c3613e06ce6394ad78204812412af05351faf65..1bdb93f5bc876669a2b3b406d71001fed8f6f1b7 100644 (file)
@@ -385,7 +385,7 @@ static void apply_dependent_coupling_fixed(AACContext *ac,
                         for (k = offsets[i]; k < offsets[i + 1]; k++) {
                             tmp = (int)(((int64_t)src[group * 128 + k] * c + \
                                        (int64_t)0x1000000000) >> 37);
-                            dest[group * 128 + k] += (tmp + round) >> shift;
+                            dest[group * 128 + k] += (tmp + (int64_t)round) >> shift;
                         }
                     }
                 }
@@ -436,7 +436,7 @@ static void apply_independent_coupling_fixed(AACContext *ac,
     else {
       for (i = 0; i < len; i++) {
           tmp = (int)(((int64_t)src[i] * c + (int64_t)0x1000000000) >> 37);
-          dest[i] += tmp * (1 << shift);
+          dest[i] += tmp * (1U << shift);
       }
     }
 }