By default, if the frame is reference-counted, this function will take
ownership of the reference(s) and reset the frame. This can be controlled
using the flags.
If this function returns an error, the input frame is not touched.
@param buffer_src pointer to a buffer source context
@param frame a frame, or NULL to mark EOF
@param flags a combination of AV_BUFFERSRC_FLAG_*
@return >= 0 in case of success, a negative AVERROR code
in case of failure
Add a frame to the buffer source.
By default, if the frame is reference-counted, this function will take ownership of the reference(s) and reset the frame. This can be controlled using the flags.
If this function returns an error, the input frame is not touched.
@param buffer_src pointer to a buffer source context @param frame a frame, or NULL to mark EOF @param flags a combination of AV_BUFFERSRC_FLAG_* @return >= 0 in case of success, a negative AVERROR code in case of failure