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
7bfa9d4a
Commit
7bfa9d4a
authored
Jun 03, 2008
by
Jan Gerber
Browse files
initialize AVFormatParameters later (thanks ogg.k.ogg.k)
parent
e1a70170
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ffmpeg2theora.c
View file @
7bfa9d4a
...
...
@@ -1237,7 +1237,7 @@ int main (int argc, char **argv){
static
int
metadata_flag
=
0
;
AVInputFormat
*
input_fmt
=
NULL
;
AVFormatParameters
params
,
*
formatParams
=
&
params
;
AVFormatParameters
params
,
*
formatParams
=
NULL
;
int
c
,
long_option_index
;
const
char
*
optstring
=
"P:o:k:f:F:x:y:v:V:a:A:S:K:d:H:c:G:Z:C:B:p:N:s:e:D:h::"
;
...
...
@@ -1697,6 +1697,7 @@ int main (int argc, char **argv){
//detect image sequences and set framerate if provided
if
(
av_guess_image2_codec
(
inputfile_name
)
!=
CODEC_ID_NONE
||
\
(
input_fmt
!=
NULL
&&
strcmp
(
input_fmt
->
name
,
"video4linux"
)
>=
0
))
{
formatParams
=
&
params
;
memset
(
formatParams
,
0
,
sizeof
(
*
formatParams
));
if
(
input_fmt
!=
NULL
&&
strcmp
(
input_fmt
->
name
,
"video4linux"
)
>=
0
)
{
formatParams
->
channel
=
0
;
...
...
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