You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mkv: mark corrupted packets and return them
Do return error if memory allocation or I/O fails.
This commit is contained in:
@@ -2069,6 +2069,11 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
ret = matroska_parse_cluster(matroska);
|
ret = matroska_parse_cluster(matroska);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret == AVERROR_INVALIDDATA) {
|
||||||
|
pkt->flags |= AV_PKT_FLAG_CORRUPT;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user