[FFmpeg-devel] [PATCH 3/5] doc/examples/vaapi_transcode: Simplify loop

mypopy at gmail.com mypopy at gmail.com
Wed Apr 24 09:39:45 EEST 2024


On Wed, Apr 24, 2024 at 9:45 AM Michael Niedermayer
<michael at niedermayer.cc> wrote:
>
> Fixes: CID1428858(1/2) Logically dead code
>
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  doc/examples/vaapi_transcode.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/doc/examples/vaapi_transcode.c b/doc/examples/vaapi_transcode.c
> index 8367cb30404..e1b7a438836 100644
> --- a/doc/examples/vaapi_transcode.c
> +++ b/doc/examples/vaapi_transcode.c
> @@ -215,10 +215,8 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec)
>
>  fail:
>          av_frame_free(&frame);
> -        if (ret < 0)
> -            return ret;
>      }
> -    return 0;
> +    return ret;
>  }
>
it's ok, thx
>  int main(int argc, char **argv)
> --
> 2.43.2


More information about the ffmpeg-devel mailing list