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

Nathan Caldwell saintdev
Sat Mar 12 04:06:36 CET 2011


On Thu, Mar 10, 2011 at 8:09 PM, Young Han Lee <cpumaker at gmail.com> wrote:
> Hi,
>
> ---
> ?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
> operation.
> - ? ? ? ? ? ?allz = FFMAX(allz, nz);
> + ? ? ? ? ? ?allz |= nz;

Looks fine.


-- 
-Nathan Caldwell



More information about the ffmpeg-devel mailing list