[FFmpeg-cvslog] avcodec/libvpxenc: avoid unnecessary variable shadowing

James Almer git at videolan.org
Tue Apr 5 18:20:32 EEST 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Apr  5 12:19:04 2022 -0300| [cc6c5ff2017c09dbf37070fa2e7fa79403c792ad] | committer: James Almer

avcodec/libvpxenc: avoid unnecessary variable shadowing

Signed-off-by: James Almer <jamrial at gmail.com>

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

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

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 302f3bc55b..f711c3fb19 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -1290,7 +1290,6 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame,
         memcpy(side_data + 8, cx_frame->buf_alpha, cx_frame->sz_alpha);
     }
     if (cx_frame->frame_number != -1) {
-        VPxContext *ctx = avctx->priv_data;
         if (ctx->hdr10_plus_fifo) {
             int err = copy_hdr10_plus_to_pkt(ctx->hdr10_plus_fifo, pkt);
             if (err < 0)



More information about the ffmpeg-cvslog mailing list