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

Young Han Lee git at videolan.org
Thu Mar 17 17:49:24 CET 2011


ffmpeg | branch: master | Young Han Lee <cpumaker at gmail.com> | Fri Mar 11 11:39:24 2011 +0900| [f578854efce12842ed4e4e25b36cf2f798054468] | committer: Ronald S. Bultje

aaccoder: Change FFMAX for allzero flag to OR bit operation

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f578854efce12842ed4e4e25b36cf2f798054468
---

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

diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index 8063fb6..d2c9282 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -723,7 +723,7 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx,
             sce->zeroes[w*16+g] = !nz;
             if (nz)
                 minthr = FFMIN(minthr, uplim);
-            allz = FFMAX(allz, nz);
+            allz |= nz;
         }
     }
     for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) {




More information about the ffmpeg-cvslog mailing list