[FFmpeg-devel] [PATCH] fftools/ffmpeg_enc: Don't call frame_data twice

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Mar 22 18:07:35 EET 2024


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 fftools/ffmpeg_enc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index f01be1c22f..5f7fcf8a5f 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -646,7 +646,6 @@ static int encode_frame(OutputFile *of, OutputStream *ost, AVFrame *frame,
     if (frame) {
         FrameData *fd = frame_data(frame);
 
-        fd = frame_data(frame);
         if (!fd)
             return AVERROR(ENOMEM);
 
-- 
2.40.1



More information about the ffmpeg-devel mailing list