[FFmpeg-devel] [PATCH 2/4] qsvenc: the return value is not any kind of int, it's a mfxStatus

Steve Lhomme robux4 at gmail.com
Thu Sep 21 16:52:48 EEST 2017


---
 libavcodec/qsvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 5eb506fb76..772336b719 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -989,7 +989,7 @@ static int encode_frame(AVCodecContext *avctx, QSVEncContext *q,
     mfxSyncPoint *sync     = NULL;
     QSVFrame *qsv_frame = NULL;
     mfxEncodeCtrl* enc_ctrl = NULL;
-    int ret;
+    mfxStatus ret;
 
     if (frame) {
         ret = submit_frame(q, frame, &qsv_frame);
-- 
2.12.1



More information about the ffmpeg-devel mailing list