aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-04-24 03:20:38 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-04-25 03:24:58 +0200
commit82cce209349d2a7c893a4f9691ec8698704b0486 (patch)
treec733854b071b45ea4b38bc66cbbe0522614f924e /doc
parent9d675bb60d2542631f37613aa92b7e1144bbeaa1 (diff)
downloadffmpeg-82cce209349d2a7c893a4f9691ec8698704b0486.tar.gz
doc/examples/qsv_transcode: Simplify loop
Fixes: CID1428858(2/2) Logically dead code Sponsored-by: Sovereign Tech Fund Reviewed-by: "Xiang, Haihao" <haihao.xiang@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/qsv_transcode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c
index 8e7d2899f1..a4440a3403 100644
--- a/doc/examples/qsv_transcode.c
+++ b/doc/examples/qsv_transcode.c
@@ -335,10 +335,8 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec, char *optstr)
fail:
av_frame_free(&frame);
- if (ret < 0)
- return ret;
}
- return 0;
+ return ret;
}
int main(int argc, char **argv)