((uint32_t *)sub->rects[0]->data[1])[i] |= (unsigned)*buf++ << 24;
}
-#if FF_API_AVPICTURE
-FF_DISABLE_DEPRECATION_WARNINGS
-{
- AVSubtitleRect *rect;
- int j;
- rect = sub->rects[0];
- for (j = 0; j < 4; j++) {
- rect->pict.data[j] = rect->data[j];
- rect->pict.linesize[j] = rect->linesize[j];
- }
-}
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
-
// process RLE-compressed data
if ((ret = init_get_bits8(&gb, buf, buf_end - buf)) < 0)
return ret;
return buf_size;
}
-AVCodec ff_xsub_decoder = {
+const AVCodec ff_xsub_decoder = {
.name = "xsub",
.long_name = NULL_IF_CONFIG_SMALL("XSUB"),
.type = AVMEDIA_TYPE_SUBTITLE,