doc/examples/vaapi_transcode: Simplify loop

Fixes: CID1428858(1/2) Logically dead code

Sponsored-by: Sovereign Tech Fund
Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-04-24 03:20:38 +02:00
parent 82cce20934
commit c9c11a0866
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}
int main(int argc, char **argv)