diff mbox

[FFmpeg-devel,V2] avfilter/vf_bilateral: remove useless memcpy

Message ID 1572405124-66233-1-git-send-email-leozhang@qiyi.com
State New
Headers show

Commit Message

leozhang Oct. 30, 2019, 3:12 a.m. UTC
Signed-off-by: leozhang <leozhang@qiyi.com>
---
 libavfilter/vf_bilateral.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c
index 3c9d800..dc2850e 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++)                                                      \