Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
46c1ee19
Commit
46c1ee19
authored
May 10, 2018
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
parent
974eb4aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
hevc_refs.c
libavcodec/hevc_refs.c
+2
-2
hevcdec.h
libavcodec/hevcdec.h
+1
-1
No files found.
libavcodec/hevc_refs.c
View file @
46c1ee19
...
...
@@ -508,12 +508,12 @@ fail:
return
ret
;
}
int
ff_hevc_frame_nb_refs
(
HEVCContext
*
s
)
int
ff_hevc_frame_nb_refs
(
const
HEVCContext
*
s
)
{
int
ret
=
0
;
int
i
;
const
ShortTermRPS
*
rps
=
s
->
sh
.
short_term_rps
;
LongTermRPS
*
long_rps
=
&
s
->
sh
.
long_term_rps
;
const
LongTermRPS
*
long_rps
=
&
s
->
sh
.
long_term_rps
;
if
(
rps
)
{
for
(
i
=
0
;
i
<
rps
->
num_negative_pics
;
i
++
)
...
...
libavcodec/hevcdec.h
View file @
46c1ee19
...
...
@@ -544,7 +544,7 @@ int ff_hevc_res_scale_sign_flag(HEVCContext *s, int idx);
/**
* Get the number of candidate references for the current frame.
*/
int
ff_hevc_frame_nb_refs
(
HEVCContext
*
s
);
int
ff_hevc_frame_nb_refs
(
const
HEVCContext
*
s
);
int
ff_hevc_set_new_ref
(
HEVCContext
*
s
,
AVFrame
**
frame
,
int
poc
);
...
...
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