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
00fd914d
Commit
00fd914d
authored
Jul 24, 2017
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevcdec: set the active SPS before calling get_format()
This way the SPS is available to the hwaccel init code.
parent
a58873b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
hevcdec.c
libavcodec/hevcdec.c
+5
-4
No files found.
libavcodec/hevcdec.c
View file @
00fd914d
...
...
@@ -490,13 +490,14 @@ static int hls_slice_header(HEVCContext *s)
ff_hevc_clear_refs
(
s
);
ret
=
set_sps
(
s
,
sps
,
sps
->
pix_fmt
);
if
(
ret
<
0
)
return
ret
;
pix_fmt
=
get_format
(
s
,
sps
);
if
(
pix_fmt
<
0
)
return
pix_fmt
;
ret
=
set_sps
(
s
,
sps
,
pix_fmt
);
if
(
ret
<
0
)
return
ret
;
s
->
avctx
->
pix_fmt
=
pix_fmt
;
s
->
seq_decode
=
(
s
->
seq_decode
+
1
)
&
0xff
;
s
->
max_ra
=
INT_MAX
;
...
...
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