diff mbox series

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

Message ID 1637592434-16132-2-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 0e22d2e59b4231a8e0e4bcca56b3f123b9474147
Headers show
Series [FFmpeg-devel,1/2] avfilter/src_movie: add format_opts for the opened file | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Lance Wang Nov. 22, 2021, 2:47 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

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

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

Comments

James Zern Nov. 22, 2021, 6:41 p.m. UTC | #1
On Mon, Nov 22, 2021 at 6:47 AM <lance.lmwang@gmail.com> wrote:
>
> From: Limin Wang <lance.lmwang@gmail.com>
>
> For dst->have_sse will be assigned by ctx->have_sse soon(code line 23).
>
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  libavcodec/libaomenc.c | 1 -
>  1 file changed, 1 deletion(-)
>

lgtm.
diff mbox series

Patch

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) {