[vlc-commits] g711: remove legacy samples limit

Rémi Denis-Courmont git at videolan.org
Wed Apr 13 22:39:01 CEST 2016


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 13 22:02:53 2016 +0300| [cea941f04b38f6dbcbef2de50ed01b08b1958073] | 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.

(cherry picked from commit 997470b2f6e0ed40f4b7f9fd38e71ed551cb00de)

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

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

diff --git a/modules/codec/g711.c b/modules/codec/g711.c
index 0473c73..9092490 100644
--- a/modules/codec/g711.c
+++ b/modules/codec/g711.c
@@ -244,9 +244,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