Mercurial > libavformat.hg
changeset 2516:0493d19385a2 libavformat
We shouldn't be passing in sizes larger than 2^56-2, so use an assert
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:26:04 +0000 |
parents | 0b8c1ddfa711 |
children | ac3e650ec92c |
files | matroskaenc.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Wed Sep 05 00:26:03 2007 +0000 +++ b/matroskaenc.c Wed Sep 05 00:26:04 2007 +0000 @@ -131,11 +131,7 @@ 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