From e3fb74f7f9a8f1895381355f40c92cac3c1023d9 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Tue, 25 Oct 2016 20:42:27 +0100 Subject: lavfi: Always propagate hw_frames_ctx through links Also adds a new flag to mark filters which are aware of hwframes and will perform this task themselves, and marks all appropriate filters with this flag. This is required to allow software-mapped hardware frames to work, because we need to have the frames context available for any later mapping operation in the filter graph. The output from the filter graph should only propagate further to an encoder if the hardware format actually matches the visible format (mapped frames are valid here and have an hw_frames_ctx, but this should not be given to the encoder as its hardware context). --- libavfilter/vf_scale_npp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavfilter/vf_scale_npp.c') diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 2fb4990953..0e636a997d 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -657,4 +657,6 @@ AVFilter ff_vf_scale_npp = { .inputs = nppscale_inputs, .outputs = nppscale_outputs, + + .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, }; -- cgit v1.2.3