c->low = 0;
c->high = 0xFFFFFF;
c->value = bytestream2_get_be24(gB);
+ c->overread = 0;
c->gbc.gB = gB;
c->get_model_sym = arith2_get_model_sym;
c->get_number = arith2_get_number;
ff_mpeg_er_frame_start(s);
- v->bits = buf_size * 8;
-
v->end_mb_x = (w + 15) >> 4;
s->end_mb_y = (h + 15) >> 4;
if (v->respic & 1)
return AVERROR_INVALIDDATA;
}
} else {
- if ((ret = ff_reget_buffer(avctx, ctx->last_pic)) < 0)
+ if ((ret = ff_reget_buffer(avctx, ctx->last_pic, 0)) < 0)
return ret;
if ((ret = av_frame_ref(frame, ctx->last_pic)) < 0)
return ret;
v->s.avctx = avctx;
- if ((ret = ff_vc1_init_common(v)) < 0)
- return ret;
- ff_vc1dsp_init(&v->vc1dsp);
+ ff_vc1_init_common(v);
v->profile = PROFILE_MAIN;
return 0;
}
-AVCodec ff_mss2_decoder = {
+const AVCodec ff_mss2_decoder = {
.name = "mss2",
.long_name = NULL_IF_CONFIG_SMALL("MS Windows Media Video V9 Screen"),
.type = AVMEDIA_TYPE_VIDEO,