[FFmpeg-cvslog] avfilter/vf_hqx: remove << 0

Michael Niedermayer git at videolan.org
Sun Jun 22 06:05:44 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 22 05:17:23 2014 +0200| [954a38e9bf65aa765f55360f4a9a7c8ec626d037] | committer: Michael Niedermayer

avfilter/vf_hqx: remove << 0

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/vf_hqx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_hqx.c b/libavfilter/vf_hqx.c
index a2a31e4..ef5a0fa 100644
--- a/libavfilter/vf_hqx.c
+++ b/libavfilter/vf_hqx.c
@@ -410,7 +410,7 @@ static av_always_inline void hqx_filter(const ThreadData *td, int jobnr, int nb_
                 src32[prevcol + nextline], src32[nextline], src32[nextline + nextcol]
             };
             const uint32_t yuv1 = rgb2yuv(r2y, w[4]);
-            const int pattern = (w[4] != w[0] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[0]))) : 0) << 0
+            const int pattern = (w[4] != w[0] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[0]))) : 0)
                               | (w[4] != w[1] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[1]))) : 0) << 1
                               | (w[4] != w[2] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[2]))) : 0) << 2
                               | (w[4] != w[3] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[3]))) : 0) << 3



More information about the ffmpeg-cvslog mailing list