aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/fbdev.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-11-05 15:16:15 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-11-05 15:37:02 +0100
commit8541422506528d77b6895dc736370409d9b32052 (patch)
tree8f4177fc17a1422963a1025c6f37e45938ace03d /libavdevice/fbdev.c
parent9663b8da9a269dff459d338036a67de32db82b72 (diff)
downloadffmpeg-8541422506528d77b6895dc736370409d9b32052.tar.gz
Make rgb_pixfmt_map const.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavdevice/fbdev.c')
-rw-r--r--libavdevice/fbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 494d5f00c2..fdd946d598 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -50,7 +50,7 @@ struct rgb_pixfmt_map_entry {
enum PixelFormat pixfmt;
};
-static struct rgb_pixfmt_map_entry rgb_pixfmt_map[] = {
+static const struct rgb_pixfmt_map_entry rgb_pixfmt_map[] = {
// bpp, red_offset, green_offset, blue_offset, alpha_offset, pixfmt
{ 32, 0, 8, 16, 24, PIX_FMT_RGBA },
{ 32, 16, 8, 0, 24, PIX_FMT_BGRA },
@@ -65,7 +65,7 @@ static enum PixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *var
int i;
for (i = 0; i < FF_ARRAY_ELEMS(rgb_pixfmt_map); i++) {
- struct rgb_pixfmt_map_entry *entry = &rgb_pixfmt_map[i];
+ const struct rgb_pixfmt_map_entry *entry = &rgb_pixfmt_map[i];
if (entry->bits_per_pixel == varinfo->bits_per_pixel &&
entry->red_offset == varinfo->red.offset &&
entry->green_offset == varinfo->green.offset &&