st->codecpar->width = mtv->img_width;
st->codecpar->height = mtv->img_height;
st->codecpar->extradata = av_strdup("BottomUp");
+ if (!st->codecpar->extradata)
+ return AVERROR(ENOMEM);
st->codecpar->extradata_size = 9;
// audio - mp3
return ret;
}
-AVInputFormat ff_mtv_demuxer = {
+const AVInputFormat ff_mtv_demuxer = {
.name = "mtv",
.long_name = NULL_IF_CONFIG_SMALL("MTV"),
.priv_data_size = sizeof(MTVDemuxContext),