From 721af294d9b7ba5df9ffe52b83254654c3d55f16 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sun, 29 Apr 2012 17:39:31 -0700 Subject: [PATCH] mkv: forward EMBL block data error Do not return 0 on error. --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;