aboutsummaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato2012-04-29 17:39:31 -0700
committerLuca Barbato2012-04-29 20:22:09 -0700
commit721af294d9b7ba5df9ffe52b83254654c3d55f16 (patch)
treeeafdc17def4c5b7a73f291f07a78a3a18e7c6ee9 /libavformat
parent85395ba73f9cc1b3cece3e85ae12f491ad7c1dd2 (diff)
mkv: forward EMBL block data error
Do not return 0 on error.
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 e45cfb02c9..5688658055 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1717,7 +1717,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
if ((n = matroska_ebmlnum_uint(matroska, data, size, &num)) < 0) {
av_log(matroska->ctx, AV_LOG_ERROR, "EBML block data error\n");
- return res;
+ return n;
}
data += n;
size -= n;