summaryrefslogtreecommitdiff
path: root/libavfilter/video.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-14 09:25:33 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-22 09:14:05 +0200
commitd4f89906e3b310609b636cf6071313ec557ec873 (patch)
treeaf879b33d3d8b1fdf14c517bfb1317f349042b15 /libavfilter/video.h
parente9b992d035b58209d66115bd7d964741dd31d592 (diff)
lavfi: add error handling to end_frame().
Diffstat (limited to 'libavfilter/video.h')
-rw-r--r--libavfilter/video.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/video.h b/libavfilter/video.h
index 893960e7c1..ef4a1a9c32 100644
--- a/libavfilter/video.h
+++ b/libavfilter/video.h
@@ -41,7 +41,7 @@ AVFilterBufferRef *ff_get_video_buffer(AVFilterLink *link, int perms,
int ff_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref);
int ff_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir);
-void ff_null_end_frame(AVFilterLink *link);
+int ff_null_end_frame(AVFilterLink *link);
/**
* Notify the next filter of the start of a frame.
@@ -61,8 +61,10 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref);
* Notify the next filter that the current frame has finished.
*
* @param link the output link the frame was sent over
+ *
+ * @return >= 0 on success, a negative AVERROR on error
*/
-void ff_end_frame(AVFilterLink *link);
+int ff_end_frame(AVFilterLink *link);
/**
* Send a slice to the next filter.