Commit 27cbe458 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Timothy Gu

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: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 712235dd
...@@ -172,7 +172,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, ...@@ -172,7 +172,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
AVProbeData lpd = *pd; AVProbeData lpd = *pd;
AVInputFormat *fmt1 = NULL, *fmt; AVInputFormat *fmt1 = NULL, *fmt;
int score, nodat = 0, score_max = 0; 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) if (!lpd.buf)
lpd.buf = zerobuffer; lpd.buf = zerobuffer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment