Showing the changes to libavfilter/avfilter.h (1 of 4 files). Show all
Unified · Split
| @@ -187,6 +187,15 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask); · 186 unmodified lines | ||
| 187 | 187 | */ |
| 188 | 188 | void avfilter_unref_buffer(AVFilterBufferRef *ref); |
| 189 | 189 | |
| 190 | +/** | |
| 191 | + * Remove a reference to a buffer and set the pointer to NULL. | |
| 192 | + * If this is the last reference to the buffer, the buffer itself | |
| 193 | + * is also automatically freed. | |
| 194 | + * | |
| 195 | + * @param ref pointer to the buffer reference | |
| 196 | + */ | |
| 197 | +void avfilter_unref_bufferp(AVFilterBufferRef **ref); | |
| 198 | + | |
| 190 | 199 | /** |
| 191 | 200 | * A list of supported formats for one end of a filter link. This is used |
| 192 | 201 | * during the format negotiation process to try to pick the best format to |