Commit bdb939ad authored by Anton Khirnov's avatar Anton Khirnov

matroskadec: only return corrupt packets that actually contain data

Fixes bug 372.
parent 1cc569dd
......@@ -2195,7 +2195,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
ret = matroska_parse_cluster(matroska);
}
if (ret == AVERROR_INVALIDDATA) {
if (ret == AVERROR_INVALIDDATA && pkt->data) {
pkt->flags |= AV_PKT_FLAG_CORRUPT;
return 0;
}
......
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