[vlc-commits] packetizer: flac: recover from bad CRC (fixes #12714)
Tristan Matthews
git at videolan.org
Sun Nov 16 10:34:42 CET 2014
vlc/vlc-2.2 | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Nov 15 23:46:51 2014 -0500| [6fc02a4a6c28271cb5293f7135c5541089d8ae48] | committer: Jean-Baptiste Kempf
packetizer: flac: recover from bad CRC (fixes #12714)
(cherry picked from commit c470b251398bc9aefa395865caf3c4c5caacf34a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=6fc02a4a6c28271cb5293f7135c5541089d8ae48
---
modules/packetizer/flac.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 3303a27..ecf854f 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -642,6 +642,8 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
if (stream_crc != crc) {
msg_Warn(p_dec, "Bad CRC for frame size %zu: 0x%x != 0x%x",
p_sys->i_frame_size, crc, stream_crc);
+ block_SkipByte(&p_sys->bytestream);
+ p_sys->i_state = STATE_NOSYNC;
} else {
p_sys->i_state = STATE_SEND_DATA;
p_sys->crc = 0;
More information about the vlc-commits
mailing list