Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-20 22:01:43 +0400
committerAnton Khirnov <anton@khirnov.net>2012-09-21 11:15:01 +0400
commitbdb939ad730f1170ef0f57fb7a3c5686435af2d1 (patch)
treed3cfb0cd92dfe6ea5908248804ed9264db5d33bf /libavformat
parent1cc569dddadfedabe970ce7408dba7ddf381e98b (diff)
matroskadec: only return corrupt packets that actually contain data
Fixes bug 372.
Diffstat (limited to 'libavformat')
-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;
}