[FFmpeg-devel] [PATCH 7/7] avcodec/flashsvenc: Avoid unnecessary variable
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat Nov 19 04:59:55 EET 2022
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/flashsvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 3c3d9c8813..89119733df 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -195,7 +195,6 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
FlashSVContext * const s = avctx->priv_data;
- const AVFrame * const p = pict;
int res;
int I_frame = 0;
int opt_w = 4, opt_h = 4;
@@ -219,7 +218,8 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if (res < 0)
return res;
- pkt->size = encode_bitstream(s, p, pkt->data, pkt->size, opt_w * 16, opt_h * 16,
+ pkt->size = encode_bitstream(s, pict, pkt->data, pkt->size,
+ opt_w * 16, opt_h * 16,
s->previous_frame, &I_frame);
//mark the frame type so the muxer can mux it correctly
--
2.34.1
More information about the ffmpeg-devel
mailing list