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
b2016189
Commit
b2016189
authored
Jun 27, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/utils: add some const to pointers parameters in a few functions
parent
2477775b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
internal.h
libavformat/internal.h
+1
-1
utils.c
libavformat/utils.c
+3
-3
No files found.
libavformat/internal.h
View file @
b2016189
...
...
@@ -561,7 +561,7 @@ enum AVWriteUncodedFrameFlags {
/**
* Copies the whilelists from one context to the other
*/
int
ff_copy_whiteblacklists
(
AVFormatContext
*
dst
,
AVFormatContext
*
src
);
int
ff_copy_whiteblacklists
(
AVFormatContext
*
dst
,
const
AVFormatContext
*
src
);
int
ffio_open2_wrapper
(
struct
AVFormatContext
*
s
,
AVIOContext
**
pb
,
const
char
*
url
,
int
flags
,
const
AVIOInterruptCB
*
int_cb
,
AVDictionary
**
options
);
...
...
libavformat/utils.c
View file @
b2016189
...
...
@@ -90,7 +90,7 @@ static int is_relative(int64_t ts) {
* @param timestamp the time stamp to wrap
* @return resulting time stamp
*/
static
int64_t
wrap_timestamp
(
AVStream
*
st
,
int64_t
timestamp
)
static
int64_t
wrap_timestamp
(
const
AVStream
*
st
,
int64_t
timestamp
)
{
if
(
st
->
pts_wrap_behavior
!=
AV_PTS_WRAP_IGNORE
&&
st
->
pts_wrap_reference
!=
AV_NOPTS_VALUE
&&
timestamp
!=
AV_NOPTS_VALUE
)
{
...
...
@@ -142,7 +142,7 @@ void av_format_inject_global_side_data(AVFormatContext *s)
}
}
int
ff_copy_whiteblacklists
(
AVFormatContext
*
dst
,
AVFormatContext
*
src
)
int
ff_copy_whiteblacklists
(
AVFormatContext
*
dst
,
const
AVFormatContext
*
src
)
{
av_assert0
(
!
dst
->
codec_whitelist
&&
!
dst
->
format_whitelist
&&
...
...
@@ -162,7 +162,7 @@ int ff_copy_whiteblacklists(AVFormatContext *dst, AVFormatContext *src)
return
0
;
}
static
const
AVCodec
*
find_decoder
(
AVFormatContext
*
s
,
AVStream
*
st
,
enum
AVCodecID
codec_id
)
static
const
AVCodec
*
find_decoder
(
AVFormatContext
*
s
,
const
AVStream
*
st
,
enum
AVCodecID
codec_id
)
{
#if FF_API_LAVF_AVCTX
FF_DISABLE_DEPRECATION_WARNINGS
...
...
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