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
6e131a7c
Commit
6e131a7c
authored
Aug 31, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_opt: add proper deprecation guards to lowres code
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
2fcf47e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffmpeg_opt.c
ffmpeg_opt.c
+3
-1
No files found.
ffmpeg_opt.c
View file @
6e131a7c
...
@@ -791,14 +791,16 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
...
@@ -791,14 +791,16 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
case
AVMEDIA_TYPE_VIDEO
:
case
AVMEDIA_TYPE_VIDEO
:
if
(
!
ist
->
dec
)
if
(
!
ist
->
dec
)
ist
->
dec
=
avcodec_find_decoder
(
par
->
codec_id
);
ist
->
dec
=
avcodec_find_decoder
(
par
->
codec_id
);
#if FF_API_
EMU_EDGE
#if FF_API_
LOWRES
if
(
av_codec_get_lowres
(
st
->
codec
))
{
if
(
av_codec_get_lowres
(
st
->
codec
))
{
av_codec_set_lowres
(
ist
->
dec_ctx
,
av_codec_get_lowres
(
st
->
codec
));
av_codec_set_lowres
(
ist
->
dec_ctx
,
av_codec_get_lowres
(
st
->
codec
));
ist
->
dec_ctx
->
width
=
st
->
codec
->
width
;
ist
->
dec_ctx
->
width
=
st
->
codec
->
width
;
ist
->
dec_ctx
->
height
=
st
->
codec
->
height
;
ist
->
dec_ctx
->
height
=
st
->
codec
->
height
;
ist
->
dec_ctx
->
coded_width
=
st
->
codec
->
coded_width
;
ist
->
dec_ctx
->
coded_width
=
st
->
codec
->
coded_width
;
ist
->
dec_ctx
->
coded_height
=
st
->
codec
->
coded_height
;
ist
->
dec_ctx
->
coded_height
=
st
->
codec
->
coded_height
;
#if FF_API_EMU_EDGE
ist
->
dec_ctx
->
flags
|=
CODEC_FLAG_EMU_EDGE
;
ist
->
dec_ctx
->
flags
|=
CODEC_FLAG_EMU_EDGE
;
#endif
}
}
#endif
#endif
...
...
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