You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Timothy Gu
parent
712235dd8f
commit
27cbe4588a
@@ -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;
|
||||||
|
Reference in New Issue
Block a user