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
18156b53
Commit
18156b53
authored
Jul 12, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: do not pass an entire HEVCContext into export_stream_params()
It only needs the parameter sets.
parent
650060df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
hevc.c
libavcodec/hevc.c
+5
-5
No files found.
libavcodec/hevc.c
View file @
18156b53
...
...
@@ -383,10 +383,10 @@ static int decode_lt_rps(HEVCContext *s, LongTermRPS *rps, GetBitContext *gb)
return
0
;
}
static
void
export_stream_params
(
AVCodecContext
*
avctx
,
const
HEVC
Context
*
s
,
const
HEVC
SPS
*
sps
)
static
void
export_stream_params
(
AVCodecContext
*
avctx
,
const
HEVCParamSets
*
ps
,
const
HEVCSPS
*
sps
)
{
const
HEVCVPS
*
vps
=
(
const
HEVCVPS
*
)
s
->
ps
.
vps_list
[
sps
->
vps_id
]
->
data
;
const
HEVCVPS
*
vps
=
(
const
HEVCVPS
*
)
ps
->
vps_list
[
sps
->
vps_id
]
->
data
;
unsigned
int
num
=
0
,
den
=
0
;
avctx
->
pix_fmt
=
sps
->
pix_fmt
;
...
...
@@ -435,7 +435,7 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)
enum
AVPixelFormat
pix_fmts
[
HWACCEL_MAX
+
2
],
*
fmt
=
pix_fmts
;
int
ret
;
export_stream_params
(
s
->
avctx
,
s
,
sps
);
export_stream_params
(
s
->
avctx
,
&
s
->
p
s
,
sps
);
pic_arrays_free
(
s
);
ret
=
pic_arrays_init
(
s
,
sps
);
...
...
@@ -3017,7 +3017,7 @@ static int hevc_decode_extradata(HEVCContext *s)
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
ps
.
sps_list
);
i
++
)
{
if
(
s
->
ps
.
sps_list
[
i
])
{
const
HEVCSPS
*
sps
=
(
const
HEVCSPS
*
)
s
->
ps
.
sps_list
[
i
]
->
data
;
export_stream_params
(
s
->
avctx
,
s
,
sps
);
export_stream_params
(
s
->
avctx
,
&
s
->
p
s
,
sps
);
break
;
}
}
...
...
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