[vlc-commits] avcodec: audio: remove unnecessary assert and check

Ilkka Ollakka git at videolan.org
Wed Sep 7 15:17:00 CEST 2016


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Sep  7 16:16:28 2016 +0300| [ba0c82ada04593baa13a56d7c0c173b6cc83845a] | committer: Ilkka Ollakka

avcodec: audio: remove unnecessary assert and check

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

 modules/codec/avcodec/audio.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 779e307..7f2412f 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -339,10 +339,6 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
             goto end;
         }
 
-        assert( p_block->i_buffer >= (unsigned)used );
-        if( (unsigned)used > p_block->i_buffer )
-            used = p_block->i_buffer;
-
         p_block->p_buffer += p_block->i_buffer;
         p_block->i_buffer = 0;
     }



More information about the vlc-commits mailing list