[FFmpeg-devel] [PATCH 2/2] avcodec/libaomenc: remove the redundant initialization

lance.lmwang at gmail.com lance.lmwang at gmail.com
Mon Nov 22 16:47:14 EET 2021


From: Limin Wang <lance.lmwang at gmail.com>

For dst->have_sse will be assigned by ctx->have_sse soon(code line 23).

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavcodec/libaomenc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 800fda0..963cc1b 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -948,7 +948,6 @@ static inline void cx_pktcpy(AOMContext *ctx,
     dst->sz       = src->data.frame.sz;
     dst->buf      = src->data.frame.buf;
 #ifdef AOM_FRAME_IS_INTRAONLY
-    dst->have_sse = 0;
     dst->frame_number = ++ctx->frame_number;
     dst->have_sse = ctx->have_sse;
     if (ctx->have_sse) {
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list