}
s->width = AV_RL16(&s->avctx->extradata[6]);
s->height = AV_RL16(&s->avctx->extradata[8]);
- if ((ret = av_image_check_size(s->width, s->height, 0, avctx)) < 0) {
+ if ((ret = ff_set_dimensions(avctx, s->width, s->height)) < 0) {
s->width= s->height= 0;
return ret;
}
return 0;
}
+static const AVCodecDefault vqa_defaults[] = {
+ { "max_pixels", "320*240" },
+ { NULL },
+};
+
AVCodec ff_vqa_decoder = {
.name = "vqavideo",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA (Vector Quantized Animation) video"),
.close = vqa_decode_end,
.decode = vqa_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .defaults = vqa_defaults,
};