[FFmpeg-soc] [soc]: r1176 - matroska/matroskaenc.c

conrad subversion at mplayerhq.hu
Fri Aug 24 03:17:03 CEST 2007


Author: conrad
Date: Fri Aug 24 03:17:03 2007
New Revision: 1176

Log:
We shouldn't be passing in sizes larger than 2^56-2, so use an assert


Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Fri Aug 24 03:17:03 2007
@@ -131,11 +131,7 @@ static void put_ebml_size(ByteIOContext 
     int i, needed_bytes = ebml_size_bytes(size);
 
     // sizes larger than this are currently undefined in EBML
-    // so write "unknown" size
-    if (size >= (1ULL<<56)-1) {
-        put_ebml_size_unknown(pb, 1);
-        return;
-    }
+    assert(size < (1ULL<<56)-1);
 
     if (bytes == 0)
         // don't care how many bytes are used, so use the min



More information about the FFmpeg-soc mailing list