avformat/format: silence -Wdiscarded-qualifiers
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 16 Sep 2015 22:50:54 +0000 (18:50 -0400)
committerTimothy Gu <timothygu99@gmail.com>
Wed, 16 Sep 2015 23:24:56 +0000 (16:24 -0700)
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>
libavformat/format.c

index fd81d7a..9c40512 100644 (file)
@@ -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;