History

lavfi: add avfilter_unref_bufferp()

Robert Nagy committed 14 years ago

Commit 65fa7bc1 parent 455fcf24 files · +19 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavfilter/avfilter.c +6 −0
  3. libavfilter/avfilter.h +9 −0
  4. libavfilter/version.h +1 −1
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2011-04-18 · 12 unmodified lines
13 13
14API changes, most recent first:14API changes, most recent first:
15 15
162012-04-20 - xxxxxxx - lavfi 2.70.100
17 Add avfilter_unref_bufferp() to avfilter.h.
18
162012-04-12 - xxxxxxx - lavfi 2.68.100192012-04-12 - xxxxxxx - lavfi 2.68.100
17 Install libavfilter/asrc_abuffer.h public header.20 Install libavfilter/asrc_abuffer.h public header.
18 21
libavfilter/avfilter.c+6−0
@@ -160,6 +160,12 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref) · 159 unmodified lines
160 av_free(ref);160 av_free(ref);
161}161}
162 162
163void avfilter_unref_bufferp(AVFilterBufferRef **ref)
164{
165 avfilter_unref_buffer(*ref);
166 *ref = NULL;
167}
168
163void avfilter_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,169void avfilter_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
164 AVFilterPad **pads, AVFilterLink ***links,170 AVFilterPad **pads, AVFilterLink ***links,
165 AVFilterPad *newpad)171 AVFilterPad *newpad)
libavfilter/avfilter.h+9−0
@@ -187,6 +187,15 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask); · 186 unmodified lines
187 */187 */
188void avfilter_unref_buffer(AVFilterBufferRef *ref);188void 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 */
197void avfilter_unref_bufferp(AVFilterBufferRef **ref);
198
190/**199/**
191 * A list of supported formats for one end of a filter link. This is used200 * A list of supported formats for one end of a filter link. This is used
192 * during the format negotiation process to try to pick the best format to201 * during the format negotiation process to try to pick the best format to
libavfilter/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
29#include "libavutil/avutil.h"29#include "libavutil/avutil.h"
30 30
31#define LIBAVFILTER_VERSION_MAJOR 231#define LIBAVFILTER_VERSION_MAJOR 2
32#define LIBAVFILTER_VERSION_MINOR 7032#define LIBAVFILTER_VERSION_MINOR 71
33#define LIBAVFILTER_VERSION_MICRO 10033#define LIBAVFILTER_VERSION_MICRO 100
34 34
35#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \35#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t