ff_qsv_print_error would output the ":" and "\n" internally in the
function.

Signed-off-by: Linjie Fu <linjie...@intel.com>
---
 libavcodec/qsv.c    | 2 +-
 libavcodec/qsvdec.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index b00e427435..ec87ed7a3f 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -401,7 +401,7 @@ static int ff_qsv_set_display_handle(AVCodecContext *avctx, 
QSVSession *qs)
         ret = MFXVideoCORE_SetHandle(qs->session,
                 (mfxHandleType)MFX_HANDLE_VA_DISPLAY, (mfxHDL)hwctx->display);
         if (ret < 0) {
-            return ff_qsv_print_error(avctx, ret, "Error during set display 
handle\n");
+            return ff_qsv_print_error(avctx, ret, "Error during set display 
handle");
         }
     }
 
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index ae5023989c..e698cb6c9f 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -468,7 +468,7 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
         ret != MFX_ERR_MORE_SURFACE) {
         av_freep(&sync);
         return ff_qsv_print_error(avctx, ret,
-                                  "Error during QSV decoding.");
+                                  "Error during QSV decoding");
     }
 
     /* make sure we do not enter an infinite loop if the SDK
-- 
2.17.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to