Add a frame to the buffer source.
- Parameters
-
ctx | an instance of the buffersrc filter |
frame | frame to be added. If the frame is reference counted, this function will take ownership of the reference(s) and reset the frame. Otherwise the frame data will be copied. If this function returns an error, the input frame is not touched. |
- Returns
- 0 on success, a negative AVERROR on error.
- Note
- the difference between this function and av_buffersrc_write_frame() is that av_buffersrc_write_frame() creates a new reference to the input frame, while this function takes ownership of the reference passed to it.
Definition at line 92 of file buffersrc.c.
Referenced by av_buffersrc_write_frame(), decode_audio(), decode_video(), main(), and video_thread().