case 'Y':
tag.persistent = MICRODVD_PERSISTENT_ON;
case 'y':
- while (*s && *s != '}') {
+ while (*s && *s != '}' && s - start < 256) {
int style_index = indexof(MICRODVD_STYLES, *s);
if (style_index >= 0)
alignment);
}
-AVCodec ff_microdvd_decoder = {
+const AVCodec ff_microdvd_decoder = {
.name = "microdvd",
.long_name = NULL_IF_CONFIG_SMALL("MicroDVD subtitle"),
.type = AVMEDIA_TYPE_SUBTITLE,