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:
parent
1cc569ddda
commit
bdb939ad73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user