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
5cc5130c
Commit
5cc5130c
authored
Oct 29, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: remove usage of deprecated getter functions
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
ddd0b191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
ffmpeg_opt.c
fftools/ffmpeg_opt.c
+9
-13
No files found.
fftools/ffmpeg_opt.c
View file @
5cc5130c
...
...
@@ -1025,23 +1025,19 @@ static int open_input_file(OptionsContext *o, const char *filename)
MATCH_PER_TYPE_OPT
(
codec_names
,
str
,
subtitle_codec_name
,
ic
,
"s"
);
MATCH_PER_TYPE_OPT
(
codec_names
,
str
,
data_codec_name
,
ic
,
"d"
);
ic
->
video_codec_id
=
video_codec_name
?
find_codec_or_die
(
video_codec_name
,
AVMEDIA_TYPE_VIDEO
,
0
)
->
id
:
AV_CODEC_ID_NONE
;
ic
->
audio_codec_id
=
audio_codec_name
?
find_codec_or_die
(
audio_codec_name
,
AVMEDIA_TYPE_AUDIO
,
0
)
->
id
:
AV_CODEC_ID_NONE
;
ic
->
subtitle_codec_id
=
subtitle_codec_name
?
find_codec_or_die
(
subtitle_codec_name
,
AVMEDIA_TYPE_SUBTITLE
,
0
)
->
id
:
AV_CODEC_ID_NONE
;
ic
->
data_codec_id
=
data_codec_name
?
find_codec_or_die
(
data_codec_name
,
AVMEDIA_TYPE_DATA
,
0
)
->
id
:
AV_CODEC_ID_NONE
;
if
(
video_codec_name
)
av_format_set_video_codec
(
ic
,
find_codec_or_die
(
video_codec_name
,
AVMEDIA_TYPE_VIDEO
,
0
)
);
ic
->
video_codec
=
find_codec_or_die
(
video_codec_name
,
AVMEDIA_TYPE_VIDEO
,
0
);
if
(
audio_codec_name
)
av_format_set_audio_codec
(
ic
,
find_codec_or_die
(
audio_codec_name
,
AVMEDIA_TYPE_AUDIO
,
0
)
);
ic
->
audio_codec
=
find_codec_or_die
(
audio_codec_name
,
AVMEDIA_TYPE_AUDIO
,
0
);
if
(
subtitle_codec_name
)
av_format_set_subtitle_codec
(
ic
,
find_codec_or_die
(
subtitle_codec_name
,
AVMEDIA_TYPE_SUBTITLE
,
0
)
);
ic
->
subtitle_codec
=
find_codec_or_die
(
subtitle_codec_name
,
AVMEDIA_TYPE_SUBTITLE
,
0
);
if
(
data_codec_name
)
av_format_set_data_codec
(
ic
,
find_codec_or_die
(
data_codec_name
,
AVMEDIA_TYPE_DATA
,
0
));
ic
->
data_codec
=
find_codec_or_die
(
data_codec_name
,
AVMEDIA_TYPE_DATA
,
0
);
ic
->
video_codec_id
=
video_codec_name
?
ic
->
video_codec
->
id
:
AV_CODEC_ID_NONE
;
ic
->
audio_codec_id
=
audio_codec_name
?
ic
->
audio_codec
->
id
:
AV_CODEC_ID_NONE
;
ic
->
subtitle_codec_id
=
subtitle_codec_name
?
ic
->
subtitle_codec
->
id
:
AV_CODEC_ID_NONE
;
ic
->
data_codec_id
=
data_codec_name
?
ic
->
data_codec
->
id
:
AV_CODEC_ID_NONE
;
ic
->
flags
|=
AVFMT_FLAG_NONBLOCK
;
if
(
o
->
bitexact
)
...
...
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