From b3dd30db0b2d857147fc0e1461a00bd6172a26a3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 2 Feb 2016 09:47:16 +0100 Subject: lavfi: pass the hw frames context through the filter chain --- libavfilter/avfilter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavfilter/avfilter.h') diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 18908583a2..0a0c415790 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -35,6 +35,7 @@ #include "libavutil/attributes.h" #include "libavutil/avutil.h" +#include "libavutil/buffer.h" #include "libavutil/frame.h" #include "libavutil/log.h" #include "libavutil/samplefmt.h" @@ -387,6 +388,12 @@ struct AVFilterLink { * Sinks can use it to set a default output frame rate. */ AVRational frame_rate; + + /** + * For hwaccel pixel formats, this should be a reference to the + * AVHWFramesContext describing the frames. + */ + AVBufferRef *hw_frames_ctx; }; /** -- cgit v1.2.3