[vlc-commits] packetizer: flac: recover from bad CRC (fixes #12714)
Tristan Matthews
git at videolan.org
Sun Nov 16 05:58:51 CET 2014
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Nov 15 23:46:51 2014 -0500| [c470b251398bc9aefa395865caf3c4c5caacf34a] | committer: Tristan Matthews
packetizer: flac: recover from bad CRC (fixes #12714)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c470b251398bc9aefa395865caf3c4c5caacf34a
---
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