[FFmpeg-cvslog] avcodec/libaomenc: remove the redundant initialization

Limin Wang git at videolan.org
Tue Nov 23 03:02:27 EET 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Wed Nov 17 23:10:58 2021 +0800| [0e22d2e59b4231a8e0e4bcca56b3f123b9474147] | committer: Limin Wang

avcodec/libaomenc: remove the redundant initialization

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

Reviewed-by: James Zern <jzern-at-google.com at ffmpeg.org>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

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

 libavcodec/libaomenc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 800fda0591..963cc1bcbc 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) {



More information about the ffmpeg-cvslog mailing list