X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fm101.c;h=795a4fba63c4761c97826508dba237a3fe481d8a;hb=f4df5039a791a56de85c64e6b9e4448a221b5c40;hp=d2549668fd6b9a29dfffde0592549434d07e9f97;hpb=022fa7a24ea8f5000e7b6a50e57cc752f417da47;p=ffmpeg diff --git a/libavcodec/m101.c b/libavcodec/m101.c index d2549668fd6..795a4fba63c 100644 --- a/libavcodec/m101.c +++ b/libavcodec/m101.c @@ -61,7 +61,7 @@ static int m101_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, 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", @@ -105,7 +105,7 @@ static int m101_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, 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,