stride = AV_RL32(avctx->extradata + 5*4);
if (avctx->pix_fmt == AV_PIX_FMT_YUV422P10)
- min_stride = (avctx->width + 15) / 16 * 20;
+ min_stride = (avctx->width + 15) / 16 * 40;
if (stride < min_stride || avpkt->size < stride * (uint64_t)avctx->height) {
av_log(avctx, AV_LOG_ERROR, "stride (%d) is invalid for packet sized %d\n",
return avpkt->size;
}
-AVCodec ff_m101_decoder = {
+const AVCodec ff_m101_decoder = {
.name = "m101",
.long_name = NULL_IF_CONFIG_SMALL("Matrox Uncompressed SD"),
.type = AVMEDIA_TYPE_VIDEO,