diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:26:04 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:26:04 +0000 |
commit | 8b65b9a3130e71a3aea36dbd1957949388e9ab4c (patch) | |
tree | 6e1810de81032e08276e093b4286e2911600dda9 /libavformat/matroskaenc.c | |
parent | e5c29287cf495ca83faecd1b94caf2e130481f55 (diff) | |
download | ffmpeg-8b65b9a3130e71a3aea36dbd1957949388e9ab4c.tar.gz |
We shouldn't be passing in sizes larger than 2^56-2, so use an assert
Originally committed as revision 10385 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index ec44d171a4..be176bcd6a 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -131,11 +131,7 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int bytes) 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 |