Revert "avformat/format: silence -Wdiscarded-qualifiers"
authorTimothy Gu <timothygu99@gmail.com>
Thu, 17 Sep 2015 02:53:13 +0000 (19:53 -0700)
committerTimothy Gu <timothygu99@gmail.com>
Thu, 17 Sep 2015 02:53:13 +0000 (19:53 -0700)
This reverts commit 27cbe4588aeaa3272f16e395bc2a337e1e43e2b6.

See
https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2015-September/179002.html

Requested-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
libavformat/format.c

index 9c40512..fd81d7a 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;
-    static uint8_t zerobuffer[AVPROBE_PADDING_SIZE];
+    const static uint8_t zerobuffer[AVPROBE_PADDING_SIZE];
 
     if (!lpd.buf)
         lpd.buf = zerobuffer;