mkv: forward EMBL block data error

Do not return 0 on error.
This commit is contained in:
Luca Barbato 2012-04-29 17:39:31 -07:00
parent 85395ba73f
commit 721af294d9
1 changed files with 1 additions and 1 deletions

View File

@ -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;