Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c6baa404
Commit
c6baa404
authored
Jan 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add some asserts() to check refcounts.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
72b33ead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
avfilter.c
libavfilter/avfilter.c
+2
-0
No files found.
libavfilter/avfilter.c
View file @
c6baa404
...
...
@@ -92,6 +92,7 @@ static void free_pool(AVFilterPool *pool)
AVFilterBufferRef
*
picref
=
pool
->
pic
[
i
];
/* free buffer: picrefs stored in the pool are not
* supposed to contain a free callback */
av_assert0
(
!
picref
->
buf
->
refcount
);
av_freep
(
&
picref
->
buf
->
data
[
0
]);
av_freep
(
&
picref
->
buf
);
...
...
@@ -146,6 +147,7 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
{
if
(
!
ref
)
return
;
av_assert0
(
ref
->
buf
->
refcount
>
0
);
if
(
!
(
--
ref
->
buf
->
refcount
))
{
if
(
!
ref
->
buf
->
free
)
{
store_in_pool
(
ref
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment