summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-04-27 17:27:40 +0200
committerAnton Khirnov <anton@khirnov.net>2012-05-09 08:49:36 +0200
commitab165047a6142ca0c8c333c36f4ebb96477622d7 (patch)
tree4c402cc651c64b9574619f0ce9df3be59c00da01 /libavfilter/avfilter.h
parent5699884c2e2b76c43df405b8613e40a953338738 (diff)
lavfi: add a function for copying properties from AVFilterBufferRef->AVFrame
Based on a commit by Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index c2049f98fe..ef61a5da6a 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -848,4 +848,12 @@ static inline void avfilter_insert_outpad(AVFilterContext *f, unsigned index,
*/
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src);
+/**
+ * Copy the frame properties and data pointers of src to dst, without copying
+ * the actual data.
+ *
+ * @return 0 on success, a negative number on error.
+ */
+int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src);
+
#endif /* AVFILTER_AVFILTER_H */