Commit 0ca4642e authored by Luca Barbato's avatar Luca Barbato

mkv: mark corrupted packets and return them

Do return error if memory allocation or I/O fails.
parent 721af294
......@@ -2069,6 +2069,11 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
ret = matroska_parse_cluster(matroska);
}
if (ret == AVERROR_INVALIDDATA) {
pkt->flags |= AV_PKT_FLAG_CORRUPT;
return 0;
}
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment