Get a frame with filtered data from sink and put it in frame.
@param ctx pointer to a buffersink or abuffersink filter context.
@param frame pointer to an allocated frame that will be filled with data.
The data must be freed using av_frame_unref() / av_frame_free()
@param flags a combination of AV_BUFFERSINK_FLAG_* flags
@return >= 0 in for success, a negative AVERROR code for failure.
Get a frame with filtered data from sink and put it in frame.
@param ctx pointer to a buffersink or abuffersink filter context. @param frame pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free() @param flags a combination of AV_BUFFERSINK_FLAG_* flags
@return >= 0 in for success, a negative AVERROR code for failure.