Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
4a01a1ae
Commit
4a01a1ae
authored
May 28, 2008
by
Jan Gerber
Browse files
use output framerate if not input framerate is defined
parent
4d7f85ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
SConstruct
View file @
4a01a1ae
...
...
@@ -9,7 +9,7 @@ pkg_version="0.21+svn"
pkg_name
=
"ffmpeg2theora"
#parse config variables
static
=
Tru
e
static
=
Fals
e
env
=
Environment
()
pkg_flags
=
"--cflags --libs"
...
...
src/ffmpeg2theora.c
View file @
4a01a1ae
...
...
@@ -1696,10 +1696,6 @@ int main (int argc, char **argv){
if
(
av_guess_image2_codec
(
inputfile_name
)
!=
CODEC_ID_NONE
||
\
(
input_fmt
!=
NULL
&&
strcmp
(
input_fmt
->
name
,
"video4linux"
)
>=
0
))
{
memset
(
formatParams
,
0
,
sizeof
(
*
formatParams
));
if
(
convert
->
force_input_fps
.
num
>
0
)
{
formatParams
->
time_base
.
den
=
convert
->
force_input_fps
.
num
;
formatParams
->
time_base
.
num
=
convert
->
force_input_fps
.
den
;
}
if
(
input_fmt
!=
NULL
&&
strcmp
(
input_fmt
->
name
,
"video4linux"
)
>=
0
)
{
formatParams
->
channel
=
0
;
formatParams
->
width
=
PAL_HALF_WIDTH
;
...
...
@@ -1714,6 +1710,9 @@ int main (int argc, char **argv){
if
(
convert
->
force_input_fps
.
num
>
0
)
{
formatParams
->
time_base
.
den
=
convert
->
force_input_fps
.
num
;
formatParams
->
time_base
.
num
=
convert
->
force_input_fps
.
den
;
}
else
if
(
convert
->
framerate_new
.
num
>
0
)
{
formatParams
->
time_base
.
den
=
convert
->
framerate_new
.
num
;
formatParams
->
time_base
.
num
=
convert
->
framerate_new
.
den
;
}
formatParams
->
video_codec_id
=
av_guess_image2_codec
(
inputfile_name
);
}
...
...
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