Revert "lavu/buffer: add release function"
This reverts commit3144440004
. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commitbba7b6fc41
) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
7d995cd1b8
commit
3171e2360a
@@ -154,18 +154,6 @@ AVBufferRef *av_buffer_ref(AVBufferRef *buf);
|
||||
*/
|
||||
void av_buffer_unref(AVBufferRef **buf);
|
||||
|
||||
/**
|
||||
* Free a given reference and pass underlaying data to user provided pointer.
|
||||
* If there is more than one reference then data is copied.
|
||||
*
|
||||
* @param buf the reference to be released. The pointer is set to NULL on return.
|
||||
* @param data pointer to be passed with underlaying data.
|
||||
* @return 0 on success, a negative AVERROR on failure.
|
||||
*
|
||||
* @note on error buffer is properly released and *data is set to NULL.
|
||||
*/
|
||||
int av_buffer_release(AVBufferRef **buf, uint8_t **data);
|
||||
|
||||
/**
|
||||
* @return 1 if the caller may write to the data referred to by buf (which is
|
||||
* true if and only if buf is the only reference to the underlying AVBuffer).
|
||||
|
Reference in New Issue
Block a user