summaryrefslogtreecommitdiff
path: root/libavformat/format.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-16 18:50:54 -0400
committerTimothy Gu <timothygu99@gmail.com>2015-09-16 16:24:56 -0700
commit27cbe4588aeaa3272f16e395bc2a337e1e43e2b6 (patch)
tree003c36b395c461c0f11ccb0bce79a1e8ef821fd6 /libavformat/format.c
parent712235dd8fb354101d8b35c4a9b2cbc9b24dd2d9 (diff)
downloadffmpeg-27cbe4588aeaa3272f16e395bc2a337e1e43e2b6.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 GCC 5.2. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
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..9c405120da 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -172,7 +172,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
AVProbeData lpd = *pd;
AVInputFormat *fmt1 = NULL, *fmt;
int score, nodat = 0, score_max = 0;
- const static uint8_t zerobuffer[AVPROBE_PADDING_SIZE];
+ static uint8_t zerobuffer[AVPROBE_PADDING_SIZE];
if (!lpd.buf)
lpd.buf = zerobuffer;