Showing the changes to libavfilter/buffer.c (1 of 3 files). Show all
Unified · Split
| @@ -84,6 +84,12 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref) · 83 unmodified lines | ||
| 84 | 84 | av_free(ref); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +void avfilter_unref_bufferp(AVFilterBufferRef **ref) | |
| 88 | +{ | |
| 89 | + avfilter_unref_buffer(*ref); | |
| 90 | + *ref = NULL; | |
| 91 | +} | |
| 92 | + | |
| 87 | 93 | int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src) |
| 88 | 94 | { |
| 89 | 95 | dst->pts = src->pts; |