summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-20 20:01:43 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-21 09:15:01 +0200
commitbdb939ad730f1170ef0f57fb7a3c5686435af2d1 (patch)
treed3cfb0cd92dfe6ea5908248804ed9264db5d33bf /libavformat/matroskadec.c
parent1cc569dddadfedabe970ce7408dba7ddf381e98b (diff)
matroskadec: only return corrupt packets that actually contain data
Fixes bug 372.
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 0a35a875c1..442db23c0b 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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;
}