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
283cc059
Commit
283cc059
authored
Jun 05, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffersink: add av_buffersink_get_frame_rate().
parent
7b42036b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
buffersink.h
libavfilter/buffersink.h
+5
-0
sink_buffer.c
libavfilter/sink_buffer.c
+5
-0
No files found.
libavfilter/buffersink.h
View file @
283cc059
...
...
@@ -133,4 +133,9 @@ int av_buffersink_read(AVFilterContext *sink, AVFilterBufferRef **buf);
int
av_buffersink_read_samples
(
AVFilterContext
*
ctx
,
AVFilterBufferRef
**
buf
,
int
nb_samples
);
/**
* Get the frame rate of the input.
*/
AVRational
av_buffersink_get_frame_rate
(
AVFilterContext
*
ctx
);
#endif
/* AVFILTER_BUFFERSINK_H */
libavfilter/sink_buffer.c
View file @
283cc059
...
...
@@ -142,6 +142,11 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx,
return
0
;
}
AVRational
av_buffersink_get_frame_rate
(
AVFilterContext
*
ctx
)
{
return
ctx
->
inputs
[
0
]
->
frame_rate
;
}
int
av_buffersink_poll_frame
(
AVFilterContext
*
ctx
)
{
BufferSinkContext
*
buf
=
ctx
->
priv
;
...
...
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