diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 17:10:48 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 17:10:48 +0200 |
commit | 5d8e836d0ec3bcaabf5bc2020210a1bc61975922 (patch) | |
tree | 8ff87745055d571431ded709218556357b18341c /libavdevice | |
parent | 151aa2ebff514a9d150a2d3a7b92be1dcc46df36 (diff) | |
download | ffmpeg-5d8e836d0ec3bcaabf5bc2020210a1bc61975922.tar.gz |
Replace all remaining occurances of step/depth_minus1 and offset_plus1
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/opengl_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index 434ae97a42..851b94735d 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -733,8 +733,8 @@ static av_cold void opengl_fill_color_map(OpenGLContext *opengl) return; #define FILL_COMPONENT(i) { \ - shift = desc->comp[i].depth_minus1 >> 3; \ - opengl->color_map[(i << 2) + ((desc->comp[i].offset_plus1 - 1) >> shift)] = 1.0; \ + shift = (desc->comp[i].depth - 1) >> 3; \ + opengl->color_map[(i << 2) + (desc->comp[i].offset >> shift)] = 1.0; \ } memset(opengl->color_map, 0, sizeof(opengl->color_map)); |