[vlc-commits] demux: avi: fix fLAC read size
Francois Cartegnie
git at videolan.org
Wed Mar 24 10:18:13 UTC 2021
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 24 11:16:34 2021 +0100| [5c6ca5c1da38a7d5981b3222e95facefd5f46a55] | committer: Francois Cartegnie
demux: avi: fix fLAC read size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c6ca5c1da38a7d5981b3222e95facefd5f46a55
---
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 7e35d125ea..aa8762f701 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -519,9 +519,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