Browse Source

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
tags/v0.5
David Conrad 18 years ago
parent
commit
8b65b9a313
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      libavformat/matroskaenc.c

+ 1
- 5
libavformat/matroskaenc.c View File

@@ -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


Loading…
Cancel
Save