Skip to content
Snippets Groups Projects
Commit 8b65b9a3 authored by David Conrad's avatar David Conrad
Browse files

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
parent e5c29287
No related branches found
No related tags found
No related merge requests found
...@@ -131,11 +131,7 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int bytes) ...@@ -131,11 +131,7 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int bytes)
int i, needed_bytes = ebml_size_bytes(size); int i, needed_bytes = ebml_size_bytes(size);
// sizes larger than this are currently undefined in EBML // sizes larger than this are currently undefined in EBML
// so write "unknown" size assert(size < (1ULL<<56)-1);
if (size >= (1ULL<<56)-1) {
put_ebml_size_unknown(pb, 1);
return;
}
if (bytes == 0) if (bytes == 0)
// don't care how many bytes are used, so use the min // don't care how many bytes are used, so use the min
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment