From dcb2fb79b731d64eb3c268b9413b75f506861138 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 17 Dec 2005 11:27:37 +0000 Subject: [PATCH] total == 0 seems like it should be valid (based upon patch by Steve Lhomme | slhomme divxcorp com) Originally committed as revision 4745 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroska.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavformat/matroska.c b/libavformat/matroska.c index 8d0df203eb..8279915f54 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -796,9 +796,6 @@ matroska_ebmlnum_uint (uint8_t *data, n++; } - if (!total) - return AVERROR_INVALIDDATA; - if (read == num_ffs) *num = (uint64_t)-1; else