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
4a37d4b3
Commit
4a37d4b3
authored
Mar 28, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add const to the pads parameter of avfilter_pad_get_name/type
parent
91d2efa7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
avfilter.c
libavfilter/avfilter.c
+2
-2
avfilter.h
libavfilter/avfilter.h
+2
-2
No files found.
libavfilter/avfilter.c
View file @
4a37d4b3
...
...
@@ -627,12 +627,12 @@ fail:
return
ret
;
}
const
char
*
avfilter_pad_get_name
(
AVFilterPad
*
pads
,
int
pad_idx
)
const
char
*
avfilter_pad_get_name
(
const
AVFilterPad
*
pads
,
int
pad_idx
)
{
return
pads
[
pad_idx
].
name
;
}
enum
AVMediaType
avfilter_pad_get_type
(
AVFilterPad
*
pads
,
int
pad_idx
)
enum
AVMediaType
avfilter_pad_get_type
(
const
AVFilterPad
*
pads
,
int
pad_idx
)
{
return
pads
[
pad_idx
].
type
;
}
...
...
libavfilter/avfilter.h
View file @
4a37d4b3
...
...
@@ -359,7 +359,7 @@ struct AVFilterPad {
*
* @return name of the pad_idx'th pad in pads
*/
const
char
*
avfilter_pad_get_name
(
AVFilterPad
*
pads
,
int
pad_idx
);
const
char
*
avfilter_pad_get_name
(
const
AVFilterPad
*
pads
,
int
pad_idx
);
/**
* Get the type of an AVFilterPad.
...
...
@@ -370,7 +370,7 @@ const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx);
*
* @return type of the pad_idx'th pad in pads
*/
enum
AVMediaType
avfilter_pad_get_type
(
AVFilterPad
*
pads
,
int
pad_idx
);
enum
AVMediaType
avfilter_pad_get_type
(
const
AVFilterPad
*
pads
,
int
pad_idx
);
/**
* Filter definition. This defines the pads a filter contains, and all the
...
...
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