Commit 6ed3565f authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Do not fail when decoding invalid v410 files with odd width.

Reviewed-by; Derek Buitenhuis
parent b9e0e953
...@@ -29,8 +29,7 @@ static av_cold int v410_decode_init(AVCodecContext *avctx) ...@@ -29,8 +29,7 @@ static av_cold int v410_decode_init(AVCodecContext *avctx)
avctx->bits_per_raw_sample = 10; avctx->bits_per_raw_sample = 10;
if (avctx->width & 1) { if (avctx->width & 1) {
av_log(avctx, AV_LOG_ERROR, "v410 requires width to be even.\n"); av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even.\n");
return AVERROR_INVALIDDATA;
} }
avctx->coded_frame = avcodec_alloc_frame(); avctx->coded_frame = avcodec_alloc_frame();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment