int i, j;
int ret;
+ if (avpkt->size < 88)
+ return AVERROR_INVALIDDATA;
+
ff_texturedsp_init(&dxtc);
bytestream2_init(&gb, avpkt->data, avpkt->size);
return AVERROR_PATCHWELCOME;
}
-AVCodec ff_txd_decoder = {
+const AVCodec ff_txd_decoder = {
.name = "txd",
.long_name = NULL_IF_CONFIG_SMALL("Renderware TXD (TeXture Dictionary) image"),
.type = AVMEDIA_TYPE_VIDEO,