diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-01 12:48:23 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-01 13:18:28 +0200 |
commit | d3c40a7d1d9e4a90edec540a6acfe060dc829273 (patch) | |
tree | 2506eff60beff51364b0ae2417d99337173e3396 /libavformat/utils.c | |
parent | d25fe4cc65b66311b10de5e097cecd56409896ce (diff) | |
download | ffmpeg-d3c40a7d1d9e4a90edec540a6acfe060dc829273.tar.gz |
avformat: const correctness for av_hex_dump / av_hex_dump_log
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2682e977bb..32cf58001f 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); } |