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
41d2008b
Commit
41d2008b
authored
Feb 21, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: use a local variable for InputFile in open_input_file().
This is shorter and more readable.
parent
1da54e90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
avconv_opt.c
avconv_opt.c
+9
-6
No files found.
avconv_opt.c
View file @
41d2008b
...
...
@@ -546,6 +546,7 @@ static void dump_attachment(AVStream *st, const char *filename)
static
int
open_input_file
(
OptionsContext
*
o
,
const
char
*
filename
)
{
InputFile
*
f
;
AVFormatContext
*
ic
;
AVInputFormat
*
file_iformat
=
NULL
;
int
err
,
i
,
ret
;
...
...
@@ -654,14 +655,16 @@ static int open_input_file(OptionsContext *o, const char *filename)
av_dump_format
(
ic
,
nb_input_files
,
filename
,
0
);
GROW_ARRAY
(
input_files
,
nb_input_files
);
if
(
!
(
input_files
[
nb_input_files
-
1
]
=
av_mallocz
(
sizeof
(
*
input_files
[
0
]))))
f
=
av_mallocz
(
sizeof
(
*
f
));
if
(
!
f
)
exit
(
1
);
input_files
[
nb_input_files
-
1
]
=
f
;
input_files
[
nb_input_files
-
1
]
->
ctx
=
ic
;
input_files
[
nb_input_files
-
1
]
->
ist_index
=
nb_input_streams
-
ic
->
nb_streams
;
input_files
[
nb_input_files
-
1
]
->
ts_offset
=
o
->
input_ts_offset
-
(
copy_ts
?
0
:
timestamp
);
input_files
[
nb_input_files
-
1
]
->
nb_streams
=
ic
->
nb_streams
;
input_files
[
nb_input_files
-
1
]
->
rate_emu
=
o
->
rate_emu
;
f
->
ctx
=
ic
;
f
->
ist_index
=
nb_input_streams
-
ic
->
nb_streams
;
f
->
ts_offset
=
o
->
input_ts_offset
-
(
copy_ts
?
0
:
timestamp
);
f
->
nb_streams
=
ic
->
nb_streams
;
f
->
rate_emu
=
o
->
rate_emu
;
for
(
i
=
0
;
i
<
o
->
nb_dump_attachment
;
i
++
)
{
int
j
;
...
...
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