This function filters the buffer buf with size buf_size, and places the
filtered buffer in the buffer pointed to by poutbuf.
The output buffer must be freed by the caller.
@param bsfc bitstream filter context created by av_bitstream_filter_init()
@param avctx AVCodecContext accessed by the filter, may be NULL.
If specified, this must point to the encoder context of the
output stream the packet is sent to.
@param args arguments which specify the filter configuration, may be NULL
@param poutbuf pointer which is updated to point to the filtered buffer
@param poutbuf_size pointer which is updated to the filtered buffer size in bytes
@param buf buffer containing the data to filter
@param buf_size size in bytes of buf
@param keyframe set to non-zero if the buffer to filter corresponds to a key-frame packet data
@return >= 0 in case of success, or a negative error code in case of failure
If the return value is positive, an output buffer is allocated and
is available in *poutbuf, and is distinct from the input buffer.
If the return value is 0, the output buffer is not allocated and
should be considered identical to the input buffer, or in case
*poutbuf was set it points to the input buffer (not necessarily to
its starting address).
Filter bitstream.
This function filters the buffer buf with size buf_size, and places the filtered buffer in the buffer pointed to by poutbuf.
The output buffer must be freed by the caller.
@param bsfc bitstream filter context created by av_bitstream_filter_init() @param avctx AVCodecContext accessed by the filter, may be NULL. If specified, this must point to the encoder context of the output stream the packet is sent to. @param args arguments which specify the filter configuration, may be NULL @param poutbuf pointer which is updated to point to the filtered buffer @param poutbuf_size pointer which is updated to the filtered buffer size in bytes @param buf buffer containing the data to filter @param buf_size size in bytes of buf @param keyframe set to non-zero if the buffer to filter corresponds to a key-frame packet data @return >= 0 in case of success, or a negative error code in case of failure
If the return value is positive, an output buffer is allocated and is available in *poutbuf, and is distinct from the input buffer.
If the return value is 0, the output buffer is not allocated and should be considered identical to the input buffer, or in case *poutbuf was set it points to the input buffer (not necessarily to its starting address).