[FFmpeg-cvslog] avfilter/vf_bilateral: remove useless memcpy

leozhang git at videolan.org
Fri Jul 17 14:55:52 EEST 2020


ffmpeg | branch: master | leozhang <leozhang at qiyi.com> | Wed Oct 30 11:07:12 2019 +0800| [fe591393cd9f0fa130631ac7695420d4cac60d46] | committer: Paul B Mahol

avfilter/vf_bilateral: remove useless memcpy

Signed-off-by: leozhang <leozhang at qiyi.com>

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

 libavfilter/vf_bilateral.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c
index 47959afdad..3025b49ae5 100644
--- a/libavfilter/vf_bilateral.c
+++ b/libavfilter/vf_bilateral.c
@@ -277,8 +277,8 @@ static void bilateral_##name(BilateralContext *s, const uint8_t *ssrc, uint8_t *
             factor_++;                                                                    \
         }                                                                                 \
                                                                                           \
-        memcpy(ypy, ycy, sizeof(float) * width);                                          \
-        memcpy(ypf, ycf, sizeof(float) * width);                                          \
+        ypy = ycy;                                                                        \
+        ypf = ycf;                                                                        \
     }                                                                                     \
                                                                                           \
     for (int i = 0; i < height; i++)                                                      \



More information about the ffmpeg-cvslog mailing list