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
840ee5e1
Commit
840ee5e1
authored
May 27, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: dont forget passing lowres to private options
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f82e7330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ffplay.c
ffplay.c
+2
-0
No files found.
ffplay.c
View file @
840ee5e1
...
...
@@ -2482,6 +2482,8 @@ static int stream_component_open(VideoState *is, int stream_index)
opts
=
filter_codec_opts
(
codec_opts
,
avctx
->
codec_id
,
ic
,
ic
->
streams
[
stream_index
],
codec
);
if
(
!
av_dict_get
(
opts
,
"threads"
,
NULL
,
0
))
av_dict_set
(
&
opts
,
"threads"
,
"auto"
,
0
);
if
(
avctx
->
lowres
)
av_dict_set
(
&
opts
,
"lowres"
,
av_asprintf
(
"%d"
,
avctx
->
lowres
),
AV_DICT_DONT_STRDUP_VAL
);
if
(
avctx
->
codec_type
==
AVMEDIA_TYPE_VIDEO
||
avctx
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
av_dict_set
(
&
opts
,
"refcounted_frames"
,
"1"
,
0
);
if
(
avcodec_open2
(
avctx
,
codec
,
&
opts
)
<
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