---
I hit this error case when trying to scale hwmapped dxva2 surfaces - no idea 
why it doesn't work, but logging the error code would make the failure slightly 
easier to understand from a log.


 libavfilter/vf_scale_qsv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index 8ef77835d..c1c13bba8 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -544,7 +544,7 @@ static int qsvscale_filter_frame(AVFilterLink *link, 
AVFrame *in)
     } while (err == MFX_WRN_DEVICE_BUSY);
 
     if (err < 0 || !sync) {
-        av_log(ctx, AV_LOG_ERROR, "Error during scaling\n");
+        av_log(ctx, AV_LOG_ERROR, "Error during scaling: %d\n", err);
         ret = AVERROR_UNKNOWN;
         goto fail;
     }
-- 
2.11.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to