total == 0 seems like it should be valid (based upon patch by Steve Lhomme | slhomme...
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 17 Dec 2005 11:27:37 +0000 (11:27 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 17 Dec 2005 11:27:37 +0000 (11:27 +0000)
Originally committed as revision 4745 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroska.c

index 8d0df203eb7415593bf05d3c84076c408c5629e2..8279915f54918ee7fe96edffa0d1467916919688 100644 (file)
@@ -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