[FFmpeg-cvslog] lavu/pixdesc: fix a const qualifier discarding warning.
Clément Bœsch
git at videolan.org
Sun Dec 16 20:47:03 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sun Dec 16 20:41:28 2012 +0100| [9ad6b130201f3ac6fe26a03f129d83a7913110d1] | committer: Clément Bœsch
lavu/pixdesc: fix a const qualifier discarding warning.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ad6b130201f3ac6fe26a03f129d83a7913110d1
---
libavutil/pixdesc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 362edfa..f9be147 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;
}
More information about the ffmpeg-cvslog
mailing list