mkv: forward EMBL block data error

Do not return 0 on error.
pull/30/merge
Luca Barbato 13 years ago
parent 85395ba73f
commit 721af294d9
  1. 2
      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;

Loading…
Cancel
Save