[vlc-devel] [PATCH] demux: avi: use INT32_MAX instead of INT_MAX

Romain Vimont rom1v at videolabs.io
Wed Oct 16 09:57:42 CEST 2019


The field 'biHeight' is uint32_t.
---
 modules/demux/avi/avi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 12e793a018..fec7505b57 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -638,8 +638,8 @@ static int Open( vlc_object_t * p_this )
                 msg_Dbg( p_demux, "stream[%u] video(%4.4s) %"PRIu32"x%"PRIu32" %dbpp %ffps",
                          i, (char*)&p_vids->p_bih->biCompression,
                          p_vids->p_bih->biWidth,
-                         (p_vids->p_bih->biHeight <= INT_MAX) ? p_vids->p_bih->biHeight
-                                                              : -1 * p_vids->p_bih->biHeight,
+                         (p_vids->p_bih->biHeight <= INT32_MAX) ? p_vids->p_bih->biHeight
+                                                                : -1 * p_vids->p_bih->biHeight,
                          p_vids->p_bih->biBitCount,
                          (float)tk->i_rate/(float)tk->i_scale );
                 break;
-- 
2.23.0



More information about the vlc-devel mailing list