1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavu/pixdesc: fix a const qualifier discarding warning.

This commit is contained in:
Clément Bœsch 2012-12-16 20:41:28 +01:00
parent 7fb49639e6
commit 9ad6b13020

View File

@ -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;
}