From ff0652e5036fd30cf518891d2158acbafea191fc Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 18 Oct 2010 13:57:11 +0000 Subject: Implement a common get_filtered_video_frame(), shared between ffplay.c and ffmpeg.c. Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk --- cmdutils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmdutils.h') 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 */ -- cgit v1.2.3