summaryrefslogtreecommitdiff
path: root/test/serialization/serialization_test.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-11-02 12:46:57 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-02 13:03:50 +0000
commit06008c6e81e8d62c3ebf45025448a3137b76d394 (patch)
tree686a6bd9eca03d3757257151265a391922ff3c59 /test/serialization/serialization_test.cpp
parent5004d8a969330c52449e6840bbef6552cfa8ee1a (diff)
pipeline: raspberrypi: Fix rounding issue in findBestFormat()
The aspect ratio calculation divides two integer values then casts to a double. This might reduce precision when scoring for aspect rato differences. Fix this by casting the integer to a double before the division. Reported-by: Coverity CID=361652 Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/serialization/serialization_test.cpp')
0 files changed, 0 insertions, 0 deletions
d='n124' href='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176