summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index 00f914cc9b..b431b2ef99 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -270,6 +270,15 @@ typedef struct {
extern AVFilter ffsink;
+/**
+ * Extract a frame from sink.
+ *
+ * @return a negative error in case of failure, 1 if one frame has
+ * been extracted successfully.
+ */
+int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
+ AVFilterBufferRef **picref, AVRational *pts_tb);
+
#endif /* CONFIG_AVFILTER */
#endif /* FFMPEG_CMDUTILS_H */