[vlc-commits] packetizer: flac: don't gather more than max framesize on guess fallback

Francois Cartegnie git at videolan.org
Thu Dec 3 22:51:12 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec  3 22:50:20 2015 +0100| [f222c56250beb7ee77104d7787bb94fcc12bb134] | committer: Francois Cartegnie

packetizer: flac: don't gather more than max framesize on guess fallback

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

 modules/packetizer/flac.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index c2c9f32..0eef93e 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -665,7 +665,8 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
                              crc = flac_crc16_undo(crc,        crc_bytes[0]);
                     if (stream_crc != crc)
                     {
-                        if(i_ret > 0)
+                        if(i_ret > 0 || (p_sys->b_stream_info &&
+                           p_sys->stream_info.max_blocksize == p_sys->i_frame_size) )
                         {
                             msg_Warn(p_dec, "Bad CRC for frame size %zu: 0x%x != 0x%x",
                                 p_sys->i_frame_size, crc, stream_crc);



More information about the vlc-commits mailing list