diff mbox series

[FFmpeg-devel,4/6] avcodec/rpzaenc: Avoid useless intermediate variable

Message ID GV1P250MB07375F2C5AFF1F1FA401B9138F4A9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e27d67b24ce4061bff1bfd8590acf2b49911b4b3
Headers show
Series [FFmpeg-devel,1/6] fate/ffmpeg: Use transcode instead of enc_dec in shortest-sub test | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 18, 2022, 2:01 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/rpzaenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/rpzaenc.c b/libavcodec/rpzaenc.c
index 0084a271c6..d710eb4f82 100644
--- a/libavcodec/rpzaenc.c
+++ b/libavcodec/rpzaenc.c
@@ -773,10 +773,9 @@  static int rpza_encode_init(AVCodecContext *avctx)
 }
 
 static int rpza_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
-                                const AVFrame *frame, int *got_packet)
+                             const AVFrame *pict, int *got_packet)
 {
     RpzaContext *s = avctx->priv_data;
-    const AVFrame *pict = frame;
     uint8_t *buf;
     int ret = ff_alloc_packet(avctx, pkt, 6LL * avctx->height * avctx->width);