vlc | branch: master | Thomas Guillem <[email protected]> | Tue Jul 28 12:05:59 
2015 +0200| [7c37dd1e048536704d044c6804ae5db7b2fc1b22] | committer: Thomas 
Guillem

avcodec: fix signed/unsigned comparison warning

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

 modules/codec/avcodec/audio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index fd3a7c0..e1be3a5 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -313,7 +313,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t 
**pp_block )
         }
 
         assert( p_block->i_buffer >= (unsigned)used );
-        if( used > p_block->i_buffer )
+        if( (unsigned)used > p_block->i_buffer )
             used = p_block->i_buffer;
 
         p_block->p_buffer += used;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to