OSDN Git Service

mkv: forward EMBL block data error
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 30 Apr 2012 00:39:31 +0000 (17:39 -0700)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 30 Apr 2012 03:22:09 +0000 (20:22 -0700)
Do not return 0 on error.

libavformat/matroskadec.c

index e45cfb0..5688658 100644 (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;