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
3013722c
Commit
3013722c
authored
Jun 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sink_buffer: assert that functions and sinks arent mixed
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fbf03ee3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sink_buffer.c
libavfilter/sink_buffer.c
+6
-0
No files found.
libavfilter/sink_buffer.c
View file @
3013722c
...
...
@@ -123,6 +123,8 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx,
int
ret
;
*
bufref
=
NULL
;
av_assert0
(
!
strcmp
(
ctx
->
filter
->
name
,
"buffersink"
)
||
!
strcmp
(
ctx
->
filter
->
name
,
"abuffersink"
));
/* no picref available, fetch it from the filterchain */
if
(
!
av_fifo_size
(
buf
->
fifo
))
{
if
(
flags
&
AV_BUFFERSINK_FLAG_NO_REQUEST
)
...
...
@@ -144,6 +146,8 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx,
AVRational
av_buffersink_get_frame_rate
(
AVFilterContext
*
ctx
)
{
av_assert0
(
!
strcmp
(
ctx
->
filter
->
name
,
"buffersink"
));
return
ctx
->
inputs
[
0
]
->
frame_rate
;
}
...
...
@@ -152,6 +156,8 @@ int av_buffersink_poll_frame(AVFilterContext *ctx)
BufferSinkContext
*
buf
=
ctx
->
priv
;
AVFilterLink
*
inlink
=
ctx
->
inputs
[
0
];
av_assert0
(
!
strcmp
(
ctx
->
filter
->
name
,
"buffersink"
)
||
!
strcmp
(
ctx
->
filter
->
name
,
"abuffersink"
));
return
av_fifo_size
(
buf
->
fifo
)
/
sizeof
(
AVFilterBufferRef
*
)
+
ff_poll_frame
(
inlink
);
}
...
...
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