changeset 2485:d0a635b1ae35 libavformat

Simplify
author conrad
date Wed, 05 Sep 2007 00:24:44 +0000
parents 60428e4e5242
children 5d8e311d7681
files matroskaenc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/matroskaenc.c	Wed Sep 05 00:24:42 2007 +0000
+++ b/matroskaenc.c	Wed Sep 05 00:24:44 2007 +0000
@@ -119,8 +119,8 @@
         return;
     }
 
-    put_byte(pb, (0x80 >> (bytes-1)) | (size >> (bytes-1)*8));
-    for (i = bytes - 2; i >= 0; i--)
+    size |= 1ULL << bytes*7;
+    for (i = bytes - 1; i >= 0; i--)
         put_byte(pb, size >> i*8);
 }