Mercurial > libavformat.hg
changeset 3089:b519194083e6 libavformat
makes really sure that no undefined behavior can happen
author | aurel |
---|---|
date | Wed, 27 Feb 2008 00:53:34 +0000 |
parents | c497351ef9fa |
children | a047cdd6c6b4 |
files | matroskaenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Tue Feb 26 22:35:07 2008 +0000 +++ b/matroskaenc.c Wed Feb 27 00:53:34 2008 +0000 @@ -149,7 +149,7 @@ static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t val) { int i, bytes = 1; - while (val >> bytes*8 && bytes < 8) bytes++; + while (bytes < 8 && val >> bytes*8) bytes++; put_ebml_id(pb, elementid); put_ebml_num(pb, bytes, 0);