[vlc-commits] packetizer: flac: fix end of frame blocksize handling

Francois Cartegnie git at videolan.org
Fri Jan 10 15:31:36 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 10 14:36:53 2014 +0100| [bb4af40803fbe8224a846c96f37631ac11b3f4ac] | committer: Francois Cartegnie

packetizer: flac: fix end of frame blocksize handling

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

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

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index a91afbf..f9e3de5 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -379,7 +379,7 @@ static int SyncInfo(decoder_t *p_dec, uint8_t *p_buf,
         blocksize = 576 << (blocksize - 2);
     }
 
-    if (p_sys->b_stream_info)
+    if (p_sys->b_stream_info && !blocksize_hint )
         if (blocksize < p_sys->stream_info.min_blocksize ||
             blocksize > p_sys->stream_info.max_blocksize)
             return 0;



More information about the vlc-commits mailing list