Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b70d89a0
Commit
b70d89a0
authored
12 years ago
by
Robert Nagy
Committed by
Anton Khirnov
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lavfi: add avfilter_unref_bufferp()
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
ce64e5bf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavfilter/avfilter.h
+12
-0
12 additions, 0 deletions
libavfilter/avfilter.h
libavfilter/buffer.c
+6
-0
6 additions, 0 deletions
libavfilter/buffer.c
with
21 additions
and
0 deletions
doc/APIchanges
+
3
−
0
View file @
b70d89a0
...
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2012-07-xx - xxxxxxx - lavfi 3.0.0 - avfilter.h
Add avfilter_unref_bufferp().
2012-07-10 - 5fade8a - lavu 51.37.0
Add av_malloc_array() and av_mallocz_array()
...
...
This diff is collapsed.
Click to expand it.
libavfilter/avfilter.h
+
12
−
0
View file @
b70d89a0
...
...
@@ -195,9 +195,21 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask);
* buffer, the buffer itself is also automatically freed.
*
* @param ref reference to the buffer, may be NULL
*
* @note it is recommended to use avfilter_unref_bufferp() instead of this
* function
*/
void
avfilter_unref_buffer
(
AVFilterBufferRef
*
ref
);
/**
* Remove a reference to a buffer and set the pointer to NULL.
* If this is the last reference to the buffer, the buffer itself
* is also automatically freed.
*
* @param ref pointer to the buffer reference
*/
void
avfilter_unref_bufferp
(
AVFilterBufferRef
**
ref
);
#if FF_API_AVFILTERPAD_PUBLIC
/**
* A filter pad used for either input or output.
...
...
This diff is collapsed.
Click to expand it.
libavfilter/buffer.c
+
6
−
0
View file @
b70d89a0
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment