]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mss1.c
ffv1: split decoder and encoder
[ffmpeg] / libavcodec / mss1.c
index 678208b09bd8027980dc03b5287f8fc2c2616c60..f72385f9fe31897caaeee8b12e04147ca4a05c8f 100644 (file)
@@ -89,7 +89,7 @@ static int arith_get_number(ArithCoder *c, int mod_val)
     return val;
 }
 
-static int arith_get_prob(ArithCoder *c, int *probs)
+static int arith_get_prob(ArithCoder *c, int16_t *probs)
 {
     int range = c->high - c->low + 1;
     int val   = ((c->value - c->low + 1) * probs[0] - 1) / range;
@@ -197,7 +197,7 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
 
     ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL);
 
-    avctx->pix_fmt = PIX_FMT_PAL8;
+    avctx->pix_fmt = AV_PIX_FMT_PAL8;
 
     return ret;
 }