On 6/27/17 11:50 PM, Mark Thompson wrote:
> To match creation on a newly-derived device.  (This was missed earlier
> because the mode is only used in some cases.)
> ---
>  libavfilter/vf_hwmap.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c
> index b28cb2145..3a3a502b7 100644
> --- a/libavfilter/vf_hwmap.c
> +++ b/libavfilter/vf_hwmap.c
> @@ -110,7 +110,8 @@ static int hwmap_config_output(AVFilterLink *outlink)
>              err = av_hwframe_ctx_create_derived(&ctx->hwframes_ref,
>                                                  outlink->format,
>                                                  device,
> -                                                inlink->hw_frames_ctx, 0);
> +                                                inlink->hw_frames_ctx,
> +                                                ctx->mode);
>              if (err < 0) {
>                  av_log(avctx, AV_LOG_ERROR, "Failed to create derived "
>                         "frames context: %d.\n", err);
> 

Seems good to go before the rest.
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to