aboutsummaryrefslogtreecommitdiff
path: root/libavutil/pixdesc.c
diff options
context:
space:
mode:
authorClément Bœsch2012-12-16 20:41:28 +0100
committerClément Bœsch2012-12-16 20:41:28 +0100
commit9ad6b130201f3ac6fe26a03f129d83a7913110d1 (patch)
tree4c0d1f8a3dd63db518ee4e2bbbafd7386424e45d /libavutil/pixdesc.c
parent7fb49639e6b1caf5579ce9663c1ff367663f9048 (diff)
lavu/pixdesc: fix a const qualifier discarding warning.
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r--libavutil/pixdesc.c2
1 files changed, 1 insertions, 1 deletions
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;
}