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
5f281e94
Commit
5f281e94
authored
Jun 05, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: add frame rate to the buffersrc arguments.
The arguments now use the key=value syntax.
parent
0f621256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
ffmpeg.c
ffmpeg.c
+10
-3
No files found.
ffmpeg.c
View file @
5f281e94
...
...
@@ -985,21 +985,28 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
AVRational
tb
=
ist
->
framerate
.
num
?
(
AVRational
){
ist
->
framerate
.
den
,
ist
->
framerate
.
num
}
:
ist
->
st
->
time_base
;
AVRational
fr
=
ist
->
framerate
.
num
?
ist
->
framerate
:
ist
->
st
->
r_frame_rate
;
AVRational
sar
;
char
args
[
255
]
;
AVBPrint
args
;
int
pad_idx
=
in
->
pad_idx
;
int
ret
;
sar
=
ist
->
st
->
sample_aspect_ratio
.
num
?
ist
->
st
->
sample_aspect_ratio
:
ist
->
st
->
codec
->
sample_aspect_ratio
;
snprintf
(
args
,
sizeof
(
args
),
"%d:%d:%d:%d:%d:%d:%d:flags=%d"
,
ist
->
st
->
codec
->
width
,
av_bprint_init
(
&
args
,
0
,
1
);
av_bprintf
(
&
args
,
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
"pixel_aspect=%d/%d:sws_param=flags=%d"
,
ist
->
st
->
codec
->
width
,
ist
->
st
->
codec
->
height
,
ist
->
st
->
codec
->
pix_fmt
,
tb
.
num
,
tb
.
den
,
sar
.
num
,
sar
.
den
,
SWS_BILINEAR
+
((
ist
->
st
->
codec
->
flags
&
CODEC_FLAG_BITEXACT
)
?
SWS_BITEXACT
:
0
));
if
(
fr
.
num
&&
fr
.
den
)
av_bprintf
(
&
args
,
":frame_rate=%d/%d"
,
fr
.
num
,
fr
.
den
);
if
((
ret
=
avfilter_graph_create_filter
(
&
ifilter
->
filter
,
filter
,
in
->
name
,
args
,
NULL
,
fg
->
graph
))
<
0
)
args
.
str
,
NULL
,
fg
->
graph
))
<
0
)
return
ret
;
if
(
ist
->
framerate
.
num
)
{
...
...
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