]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vsrc_buffer.h
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavfilter / vsrc_buffer.h
index c717f3dae4e7ab1cf82ae81bced6dc0704c0d091..b661d414eaa2d4656d91f58129d645d2492d8b28 100644 (file)
 
 #include "avfilter.h"
 
+/**
+ * Tell av_vsrc_buffer_add_video_buffer_ref() to overwrite the already
+ * cached video buffer with the new added one, otherwise the function
+ * will complain and exit.
+ */
+#define AV_VSRC_BUF_FLAG_OVERWRITE 1
+
 /**
  * Add video buffer data in picref to buffer_src.
  *
  * @param buffer_src pointer to a buffer source context
+ * @param flags a combination of AV_VSRC_BUF_FLAG_* flags
  * @return >= 0 in case of success, a negative AVERROR code in case of
  * failure
  */
-int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_src, AVFilterBufferRef *picref);
+int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_src,
+                                        AVFilterBufferRef *picref, int flags);
 
 #endif /* AVFILTER_VSRC_BUFFER_H */