On 25/02/2017 21:54, Mark Thompson wrote:
> ---
> 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;
> }
>
Making ff_qsv_print_error public so it could be used from the filter
might improve it even more, but I guess it is ok for the time being.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel