MP4: kill a warning
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 21:39:37 +0000 (23:39 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 21:43:14 +0000 (23:43 +0200)
modules/demux/mp4/mp4.c

index 0636079..c3f7e50 100644 (file)
@@ -666,7 +666,7 @@ static int Demux( demux_t *p_demux )
                         uint32_t p_key[4];
                         drms_get_p_key( tk->p_drms, p_key );
 
-                        for( int i_pos = tk->p_skcr->data.p_skcr->i_init; i_pos < p_block->i_buffer; )
+                        for( size_t i_pos = tk->p_skcr->data.p_skcr->i_init; i_pos < p_block->i_buffer; )
                         {
                             int n = __MIN( tk->p_skcr->data.p_skcr->i_encr, p_block->i_buffer - i_pos );
                             drms_decrypt( tk->p_drms, (uint32_t*)&p_block->p_buffer[i_pos], n, p_key );