[vlc-commits] asf: fix sign compare warning

Thomas Guillem git at videolan.org
Tue Sep 26 13:40:23 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 26 13:36:59 2017 +0200| [6db90a58fc88551ed3fa3bd48c11c9e46eef43af] | committer: Thomas Guillem

asf: fix sign compare warning

Since tk->i_cat = tk->p_fmt->i_cat and is signed;

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6db90a58fc88551ed3fa3bd48c11c9e46eef43af
---

 modules/demux/asf/asf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index dc32109091..8f8c85f858 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -482,7 +482,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 for( int j = 0; j < MAX_ASF_TRACKS ; j++ )
                 {
                     tk = p_sys->track[j];
-                    if( !tk->p_fmt || tk->p_fmt->i_cat != -1 * i )
+                    if( !tk->p_fmt || tk->i_cat != -1 * i )
                         continue;
                     if( tk )
                     {



More information about the vlc-commits mailing list