lavfi: add avfilter_unref_bufferp()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
ce64e5bfd1
commit
b70d89a033
@ -84,6 +84,12 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
|
||||
av_free(ref);
|
||||
}
|
||||
|
||||
void avfilter_unref_bufferp(AVFilterBufferRef **ref)
|
||||
{
|
||||
avfilter_unref_buffer(*ref);
|
||||
*ref = NULL;
|
||||
}
|
||||
|
||||
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
|
||||
{
|
||||
dst->pts = src->pts;
|
||||
|
Reference in New Issue
Block a user