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
53abe324
Commit
53abe324
authored
Jul 26, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as const
parent
1a880b2f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
avcodec.h
libavcodec/avcodec.h
+3
-3
bitstream_filter.c
libavcodec/bitstream_filter.c
+1
-1
parser.c
libavcodec/parser.c
+1
-1
utils.c
libavcodec/utils.c
+1
-1
No files found.
libavcodec/avcodec.h
View file @
53abe324
...
...
@@ -3800,7 +3800,7 @@ typedef struct AVCodecParser {
struct
AVCodecParser
*
next
;
}
AVCodecParser
;
AVCodecParser
*
av_parser_next
(
AVCodecParser
*
c
);
AVCodecParser
*
av_parser_next
(
const
AVCodecParser
*
c
);
void
av_register_codec_parser
(
AVCodecParser
*
parser
);
AVCodecParserContext
*
av_parser_init
(
int
codec_id
);
...
...
@@ -4281,7 +4281,7 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
const
uint8_t
*
buf
,
int
buf_size
,
int
keyframe
);
void
av_bitstream_filter_close
(
AVBitStreamFilterContext
*
bsf
);
AVBitStreamFilter
*
av_bitstream_filter_next
(
AVBitStreamFilter
*
f
);
AVBitStreamFilter
*
av_bitstream_filter_next
(
const
AVBitStreamFilter
*
f
);
/* memory */
...
...
@@ -4343,7 +4343,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel);
* if hwaccel is non-NULL, returns the next registered hardware accelerator
* after hwaccel, or NULL if hwaccel is the last one.
*/
AVHWAccel
*
av_hwaccel_next
(
AVHWAccel
*
hwaccel
);
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
);
/**
...
...
libavcodec/bitstream_filter.c
View file @
53abe324
...
...
@@ -25,7 +25,7 @@
static
AVBitStreamFilter
*
first_bitstream_filter
=
NULL
;
AVBitStreamFilter
*
av_bitstream_filter_next
(
AVBitStreamFilter
*
f
)
AVBitStreamFilter
*
av_bitstream_filter_next
(
const
AVBitStreamFilter
*
f
)
{
if
(
f
)
return
f
->
next
;
...
...
libavcodec/parser.c
View file @
53abe324
...
...
@@ -29,7 +29,7 @@
static
AVCodecParser
*
av_first_parser
=
NULL
;
AVCodecParser
*
av_parser_next
(
AVCodecParser
*
p
)
AVCodecParser
*
av_parser_next
(
const
AVCodecParser
*
p
)
{
if
(
p
)
return
p
->
next
;
...
...
libavcodec/utils.c
View file @
53abe324
...
...
@@ -2279,7 +2279,7 @@ void av_register_hwaccel(AVHWAccel *hwaccel)
hwaccel
->
next
=
NULL
;
}
AVHWAccel
*
av_hwaccel_next
(
AVHWAccel
*
hwaccel
)
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
)
{
return
hwaccel
?
hwaccel
->
next
:
first_hwaccel
;
}
...
...
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