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
f3a6ad22
Commit
f3a6ad22
authored
Apr 04, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: rename InputStream.opts to InputStream.decoder_opts
This makes it more clear what is this variable for exactly.
parent
73ed8558
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
avconv.c
avconv.c
+5
-5
avconv.h
avconv.h
+1
-1
avconv_opt.c
avconv_opt.c
+2
-2
No files found.
avconv.c
View file @
f3a6ad22
...
...
@@ -202,7 +202,7 @@ static void avconv_cleanup(int ret)
av_frame_free
(
&
ist
->
decoded_frame
);
av_frame_free
(
&
ist
->
filter_frame
);
av_dict_free
(
&
ist
->
opts
);
av_dict_free
(
&
ist
->
decoder_
opts
);
av_freep
(
&
ist
->
filters
);
av_freep
(
&
ist
->
hwaccel_device
);
...
...
@@ -1566,9 +1566,9 @@ static int init_input_stream(int ist_index, char *error, int error_len)
av_opt_set_int
(
ist
->
st
->
codec
,
"refcounted_frames"
,
1
,
0
);
if
(
!
av_dict_get
(
ist
->
opts
,
"threads"
,
NULL
,
0
))
av_dict_set
(
&
ist
->
opts
,
"threads"
,
"auto"
,
0
);
if
((
ret
=
avcodec_open2
(
ist
->
st
->
codec
,
codec
,
&
ist
->
opts
))
<
0
)
{
if
(
!
av_dict_get
(
ist
->
decoder_
opts
,
"threads"
,
NULL
,
0
))
av_dict_set
(
&
ist
->
decoder_
opts
,
"threads"
,
"auto"
,
0
);
if
((
ret
=
avcodec_open2
(
ist
->
st
->
codec
,
codec
,
&
ist
->
decoder_
opts
))
<
0
)
{
char
errbuf
[
128
];
if
(
ret
==
AVERROR_EXPERIMENTAL
)
abort_codec_experimental
(
codec
,
0
);
...
...
@@ -1581,7 +1581,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
ist
->
file_index
,
ist
->
st
->
index
,
errbuf
);
return
ret
;
}
assert_avoptions
(
ist
->
opts
);
assert_avoptions
(
ist
->
decoder_
opts
);
}
ist
->
last_dts
=
ist
->
st
->
avg_frame_rate
.
num
?
-
ist
->
st
->
codec
->
has_b_frames
*
AV_TIME_BASE
/
av_q2d
(
ist
->
st
->
avg_frame_rate
)
:
0
;
...
...
avconv.h
View file @
f3a6ad22
...
...
@@ -231,7 +231,7 @@ typedef struct InputStream {
PtsCorrectionContext
pts_ctx
;
double
ts_scale
;
int
showed_multi_packet_warning
;
AVDictionary
*
opts
;
AVDictionary
*
decoder_
opts
;
AVRational
framerate
;
/* framerate forced with -r */
int
resample_height
;
...
...
avconv_opt.c
View file @
f3a6ad22
...
...
@@ -492,7 +492,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
}
ist
->
dec
=
choose_decoder
(
o
,
ic
,
st
);
ist
->
opts
=
filter_codec_opts
(
o
->
g
->
codec_opts
,
ist
->
st
->
codec
->
codec_id
,
ic
,
st
,
ist
->
dec
);
ist
->
decoder_
opts
=
filter_codec_opts
(
o
->
g
->
codec_opts
,
ist
->
st
->
codec
->
codec_id
,
ic
,
st
,
ist
->
dec
);
switch
(
dec
->
codec_type
)
{
case
AVMEDIA_TYPE_VIDEO
:
...
...
@@ -754,7 +754,7 @@ static int open_input_file(OptionsContext *o, const char *filename)
unused_opts
=
strip_specifiers
(
o
->
g
->
codec_opts
);
for
(
i
=
f
->
ist_index
;
i
<
nb_input_streams
;
i
++
)
{
e
=
NULL
;
while
((
e
=
av_dict_get
(
input_streams
[
i
]
->
opts
,
""
,
e
,
while
((
e
=
av_dict_get
(
input_streams
[
i
]
->
decoder_
opts
,
""
,
e
,
AV_DICT_IGNORE_SUFFIX
)))
av_dict_set
(
&
unused_opts
,
e
->
key
,
NULL
,
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