Commit 9ad6b130 authored by Clément Bœsch's avatar Clément Bœsch

lavu/pixdesc: fix a const qualifier discarding warning.

parent 7fb49639
...@@ -1719,7 +1719,7 @@ int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) ...@@ -1719,7 +1719,7 @@ int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
int steps[4] = {0}; int steps[4] = {0};
for (c = 0; c < pixdesc->nb_components; c++) { 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; int s = c == 1 || c == 2 ? 0 : log2_pixels;
steps[comp->plane] = (comp->step_minus1 + 1) << s; steps[comp->plane] = (comp->step_minus1 + 1) << s;
} }
......
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