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

Jan Ekström jeebjp at gmail.com
Fri Mar 22 18:46:19 EET 2024


On Fri, Mar 22, 2024 at 6:07 PM Andreas Rheinhardt
<andreas.rheinhardt at outlook.com> wrote:
>
> 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);
>

Good catch, LGTM.

Jan


More information about the ffmpeg-devel mailing list