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 8d0df20..8279915 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