mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
vo_opengl: unconfuse Coverity
It thinks that integer_conv_fbo[index] is implied to be accessed with up to index=5. Although that is theoretical only, it has a point that this makes no sense. Use the same constant for the array allocation, to make it more uniform and robust. Fixes CID 1350060.
This commit is contained in:
@@ -177,7 +177,7 @@ struct gl_video {
|
||||
struct fbotex output_fbo;
|
||||
struct fbotex deband_fbo;
|
||||
struct fbosurface surfaces[FBOSURFACES_MAX];
|
||||
struct fbotex integer_conv_fbo[4];
|
||||
struct fbotex integer_conv_fbo[TEXUNIT_VIDEO_NUM];
|
||||
|
||||
// these are duplicated so we can keep rendering back and forth between
|
||||
// them to support an unlimited number of shader passes per step
|
||||
|
||||
Reference in New Issue
Block a user