[vlc-commits] packetizer: flac: check streaminfo maxframesize value
Francois Cartegnie
git at videolan.org
Thu Feb 9 16:10:12 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 9 16:08:53 2017 +0100| [2fc7e0324e1093af03e13497a76d0eb98bbcf5e0] | committer: Francois Cartegnie
packetizer: flac: check streaminfo maxframesize value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2fc7e0324e1093af03e13497a76d0eb98bbcf5e0
---
modules/packetizer/flac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index fb2f0ba..8ebb360 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -687,6 +687,7 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
break;
}
else if( p_sys->b_stream_info &&
+ p_sys->stream_info.max_framesize > MIN_FLAC_FRAME_SIZE &&
p_sys->stream_info.max_framesize < p_sys->i_offset )
{
/* Something went wrong, truncate stream head and restart */
More information about the vlc-commits
mailing list