summaryrefslogtreecommitdiff
path: root/libavformat/format.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-19 17:37:14 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-20 02:14:18 +0200
commit6ea457f76d9771e5669305ac71e3f436ad4f6dfc (patch)
tree2939d1872268a2b0946b8444b19e6326d57f8c1c /libavformat/format.c
parent7cf22c79706d23d40d16cee37eb32d5797adcc2c (diff)
downloadffmpeg-6ea457f76d9771e5669305ac71e3f436ad4f6dfc.tar.gz
avformat/format: silence -Wdiscarded-qualifiers
lpd.buf is non-const and discards the const qualifier of zerobuffer. This fixes -Wdiscarded-qualifiers observed with a variety of compilers, including GCC 5.2. Note that this does not change the type of zerobuffer, and merely makes the intent explicit. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/format.c')
-rw-r--r--libavformat/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/format.c b/libavformat/format.c
index fd81d7a132..ffddb13782 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -175,7 +175,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
const static uint8_t zerobuffer[AVPROBE_PADDING_SIZE];
if (!lpd.buf)
- lpd.buf = zerobuffer;
+ lpd.buf = (unsigned char *) zerobuffer;
if (lpd.buf_size > 10 && ff_id3v2_match(lpd.buf, ID3v2_DEFAULT_MAGIC)) {
int id3len = ff_id3v2_tag_len(lpd.buf);