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
d3c40a7d
Commit
d3c40a7d
authored
Oct 01, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: const correctness for av_hex_dump / av_hex_dump_log
parent
d25fe4cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
avformat.h
libavformat/avformat.h
+2
-2
utils.c
libavformat/utils.c
+4
-3
No files found.
libavformat/avformat.h
View file @
d3c40a7d
...
...
@@ -1539,7 +1539,7 @@ enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
*
* @see av_hex_dump_log, av_pkt_dump2, av_pkt_dump_log2
*/
void
av_hex_dump
(
FILE
*
f
,
uint8_t
*
buf
,
int
size
);
void
av_hex_dump
(
FILE
*
f
,
const
uint8_t
*
buf
,
int
size
);
/**
* Send a nice hexadecimal dump of a buffer to the log.
...
...
@@ -1553,7 +1553,7 @@ void av_hex_dump(FILE *f, uint8_t *buf, int size);
*
* @see av_hex_dump, av_pkt_dump2, av_pkt_dump_log2
*/
void
av_hex_dump_log
(
void
*
avcl
,
int
level
,
uint8_t
*
buf
,
int
size
);
void
av_hex_dump_log
(
void
*
avcl
,
int
level
,
const
uint8_t
*
buf
,
int
size
);
/**
* Send a nice dump of a packet to the specified file stream.
...
...
libavformat/utils.c
View file @
d3c40a7d
...
...
@@ -3566,7 +3566,8 @@ int av_get_frame_filename(char *buf, int buf_size,
return
-
1
;
}
static
void
hex_dump_internal
(
void
*
avcl
,
FILE
*
f
,
int
level
,
uint8_t
*
buf
,
int
size
)
static
void
hex_dump_internal
(
void
*
avcl
,
FILE
*
f
,
int
level
,
const
uint8_t
*
buf
,
int
size
)
{
int
len
,
i
,
j
,
c
;
#undef fprintf
...
...
@@ -3595,12 +3596,12 @@ static void hex_dump_internal(void *avcl, FILE *f, int level, uint8_t *buf, int
#undef PRINT
}
void
av_hex_dump
(
FILE
*
f
,
uint8_t
*
buf
,
int
size
)
void
av_hex_dump
(
FILE
*
f
,
const
uint8_t
*
buf
,
int
size
)
{
hex_dump_internal
(
NULL
,
f
,
0
,
buf
,
size
);
}
void
av_hex_dump_log
(
void
*
avcl
,
int
level
,
uint8_t
*
buf
,
int
size
)
void
av_hex_dump_log
(
void
*
avcl
,
int
level
,
const
uint8_t
*
buf
,
int
size
)
{
hex_dump_internal
(
avcl
,
NULL
,
level
,
buf
,
size
);
}
...
...
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