]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hq_hqa.c
avcodec: add Gremlin DPCM decoder
[ffmpeg] / libavcodec / hq_hqa.c
index 80dc6b5d40c6d264cd58ffaf93f4d1557f0d882d..f88ad7d5f5a32a2e06ffe8784c7670936b2f238f 100644 (file)
@@ -83,7 +83,7 @@ static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64],
         pos += ff_hq_ac_skips[val];
         if (pos >= 64)
             break;
-        block[ff_zigzag_direct[pos]] = (ff_hq_ac_syms[val] * q[pos]) >> 12;
+        block[ff_zigzag_direct[pos]] = (int)(ff_hq_ac_syms[val] * (unsigned)q[pos]) >> 12;
         pos++;
     }