From 9ad6b130201f3ac6fe26a03f129d83a7913110d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sun, 16 Dec 2012 20:41:28 +0100 Subject: [PATCH] lavu/pixdesc: fix a const qualifier discarding warning. --- libavutil/pixdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 362edfa07f..f9be147ad9 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -1719,7 +1719,7 @@ int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) int steps[4] = {0}; for (c = 0; c < pixdesc->nb_components; c++) { - AVComponentDescriptor *comp = &pixdesc->comp[c]; + const AVComponentDescriptor *comp = &pixdesc->comp[c]; int s = c == 1 || c == 2 ? 0 : log2_pixels; steps[comp->plane] = (comp->step_minus1 + 1) << s; }