return AVERROR_PATCHWELCOME;
}
+ if (bits_per_color > 32)
+ return AVERROR_INVALIDDATA;
+
buf += 820;
avctx->sample_aspect_ratio.num = read32(&buf, endian);
avctx->sample_aspect_ratio.den = read32(&buf, endian);
return buf_size;
}
-AVCodec ff_dpx_decoder = {
+const AVCodec ff_dpx_decoder = {
.name = "dpx",
.long_name = NULL_IF_CONFIG_SMALL("DPX (Digital Picture Exchange) image"),
.type = AVMEDIA_TYPE_VIDEO,