[vlc-commits] demux: avi: fix fLAC read size

Francois Cartegnie git at videolan.org
Wed Mar 24 10:19:42 UTC 2021


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 24 11:16:34 2021 +0100| [461b00afe2c27219774638d00aa731e391aad493] | committer: Francois Cartegnie

demux: avi: fix fLAC read size

(cherry picked from commit 5c6ca5c1da38a7d5981b3222e95facefd5f46a55)

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

 modules/demux/avi/avi.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index ee31340bb6..8cdb2c5568 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -550,9 +550,11 @@ static int Open( vlc_object_t * p_this )
                     tk->i_samplesize = tk->i_blocksize;
                 }
 
-                if( tk->fmt.i_codec == VLC_CODEC_VORBIS )
+                /* fix VBR decoding */
+                if( tk->fmt.i_codec == VLC_CODEC_VORBIS ||
+                    tk->fmt.i_codec == VLC_CODEC_FLAC )
                 {
-                    tk->i_blocksize = 0; /* fix vorbis VBR decoding */
+                    tk->i_blocksize = 0;
                 }
 
                 if ( tk->fmt.i_codec == VLC_CODEC_MP4A )



More information about the vlc-commits mailing list