[vlc-commits] g711: remove legacy samples limit

Rémi Denis-Courmont git at videolan.org
Wed Apr 13 21:03:58 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 13 22:02:53 2016 +0300| [997470b2f6e0ed40f4b7f9fd38e71ed551cb00de] | committer: Rémi Denis-Courmont

g711: remove legacy samples limit

There is no point in limitting the number of samples decoded at once.
The decoder would just iterate and decode the remaining samples
immediately.

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

 modules/codec/g711.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/g711.c b/modules/codec/g711.c
index 0ac5fcc..111b65f 100644
--- a/modules/codec/g711.c
+++ b/modules/codec/g711.c
@@ -263,9 +263,6 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         return NULL;
     }
 
-    /* Create chunks of max 1024 samples */
-    if( samples > 1024 ) samples = 1024;
-
     block_t *p_out = decoder_NewAudioBuffer( p_dec, samples );
     if( p_out == NULL )
     {



More information about the vlc-commits mailing list