[SCM] libav/experimental: simplification proposed by Rich
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:16:00 UTC 2013
The following commit has been merged in the experimental branch:
commit 73260a11e1a3da8a0c67967f71d460db8bd0a4df
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Sat Mar 1 00:26:19 2008 +0000
simplification proposed by Rich
Originally committed as revision 12280 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 00818b5..d096f72 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -149,7 +149,8 @@ static void put_ebml_num(ByteIOContext *pb, uint64_t num, int bytes)
static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t val)
{
int i, bytes = 1;
- while (bytes < 8 && val >> bytes*8) bytes++;
+ uint64_t tmp = val;
+ while (tmp>>=8) bytes++;
put_ebml_id(pb, elementid);
put_ebml_num(pb, bytes, 0);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list