Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
280ef183
Commit
280ef183
authored
Sep 24, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavformat/ffmetadec: Make unchanged function arguments const
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ab6f4fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ffmetadec.c
libavformat/ffmetadec.c
+6
-4
No files found.
libavformat/ffmetadec.c
View file @
280ef183
...
@@ -78,10 +78,11 @@ static AVChapter *read_chapter(AVFormatContext *s)
...
@@ -78,10 +78,11 @@ static AVChapter *read_chapter(AVFormatContext *s)
return
avpriv_new_chapter
(
s
,
s
->
nb_chapters
,
tb
,
start
,
end
,
NULL
);
return
avpriv_new_chapter
(
s
,
s
->
nb_chapters
,
tb
,
start
,
end
,
NULL
);
}
}
static
uint8_t
*
unescape
(
uint8_t
*
buf
,
int
size
)
static
uint8_t
*
unescape
(
const
uint8_t
*
buf
,
int
size
)
{
{
uint8_t
*
ret
=
av_malloc
(
size
+
1
);
uint8_t
*
ret
=
av_malloc
(
size
+
1
);
uint8_t
*
p1
=
ret
,
*
p2
=
buf
;
uint8_t
*
p1
=
ret
;
const
uint8_t
*
p2
=
buf
;
if
(
!
ret
)
if
(
!
ret
)
return
NULL
;
return
NULL
;
...
@@ -95,9 +96,10 @@ static uint8_t *unescape(uint8_t *buf, int size)
...
@@ -95,9 +96,10 @@ static uint8_t *unescape(uint8_t *buf, int size)
return
ret
;
return
ret
;
}
}
static
int
read_tag
(
uint8_t
*
line
,
AVDictionary
**
m
)
static
int
read_tag
(
const
uint8_t
*
line
,
AVDictionary
**
m
)
{
{
uint8_t
*
key
,
*
value
,
*
p
=
line
;
uint8_t
*
key
,
*
value
;
const
uint8_t
*
p
=
line
;
/* find first not escaped '=' */
/* find first not escaped '=' */
while
(
1
)
{
while
(
1
)
{
...
...
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