1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

matroskadec: only return corrupt packets that actually contain data

Fixes bug 372.
This commit is contained in:
Anton Khirnov 2012-09-20 20:01:43 +02:00
parent 1cc569ddda
commit bdb939ad73

View File

@ -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;
}