[FFmpeg-devel] [PATCH 3/4] avfilter/qsvvpp: Remove unreachable code

Michael Niedermayer michael at niedermayer.cc
Wed Jun 12 00:59:05 EEST 2024


Fixes: CID1598548 Logically dead code

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavfilter/qsvvpp.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index 1c9773df099..6adf9f6e841 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -1099,11 +1099,6 @@ int ff_qsvvpp_create_mfx_session(void *ctx,
     if (sts < 0)
         return ff_qsvvpp_print_error(ctx, sts,
                                      "Error creating a MFX session");
-    else if (sts > 0) {
-        ff_qsvvpp_print_warning(ctx, sts,
-                                "Warning in MFX session creation");
-        return AVERROR_UNKNOWN;
-    }
 
     *psession = session;
 
-- 
2.45.2



More information about the ffmpeg-devel mailing list