[FFmpeg-devel] [PATCH] aaccoder: Change FFMAX for allzero flag to OR bit operation

Young Han Lee cpumaker
Fri Mar 11 04:09:22 CET 2011


 libavcodec/aaccoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

In the two-loop quantizer,
"allz" flag only has the value 0 or 1. and "allz" is set to 1 if one of "nz"
in the loop is 1.
In this case, FFMAX() can be changed to OR bit operation which is simple
-            allz = FFMAX(allz, nz);
+            allz |= nz;

Young Han
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aaccoder-Change-FFMAX-for-allzero-flag-to-OR-operat.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110311/c6ff6c6a/attachment.bin>

More information about the ffmpeg-devel mailing list