avctx->bits_per_raw_sample = 10;
if (avctx->width & 1) {
- av_log(avctx, AV_LOG_ERROR, "v410 requires even width.\n");
- return AVERROR_INVALIDDATA;
+ if (avctx->err_recognition & AV_EF_EXPLODE) {
+ av_log(avctx, AV_LOG_ERROR, "v410 requires width to be even.\n");
+ return AVERROR_INVALIDDATA;
+ } else {
+ av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even, continuing anyway.\n");
+ }
}
avctx->coded_frame = avcodec_alloc_frame();
}
pic->key_frame = 1;
- pic->pict_type = FF_I_TYPE;
+ pic->pict_type = AV_PICTURE_TYPE_I;
y = (uint16_t *)pic->data[0];
u = (uint16_t *)pic->data[1];
AVCodec ff_v410_decoder = {
.name = "v410",
.type = AVMEDIA_TYPE_VIDEO,
- .id = CODEC_ID_V410,
+ .id = AV_CODEC_ID_V410,
.init = v410_decode_init,
.decode = v410_decode_frame,
.close = v410_decode_close,