You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_hwmap: Pass mapping mode when deriving frames context on an existing device
To match creation on a newly-derived device. (This was missed earlier because the mode is only used in some cases.)
This commit is contained in:
@@ -114,7 +114,8 @@ static int hwmap_config_output(AVFilterLink *outlink)
|
|||||||
err = av_hwframe_ctx_create_derived(&ctx->hwframes_ref,
|
err = av_hwframe_ctx_create_derived(&ctx->hwframes_ref,
|
||||||
outlink->format,
|
outlink->format,
|
||||||
device,
|
device,
|
||||||
inlink->hw_frames_ctx, 0);
|
inlink->hw_frames_ctx,
|
||||||
|
ctx->mode);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Failed to create derived "
|
av_log(avctx, AV_LOG_ERROR, "Failed to create derived "
|
||||||
"frames context: %d.\n", err);
|
"frames context: %d.\n", err);
|
||||||
|
Reference in New Issue
Block a user