From 3f7a4110979a94f326a77ea20d3817f9623fd2f5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 9 Feb 2021 20:54:22 +0000 Subject: mpeg: disabled CRC checking git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9718 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mpeg/decoder_mad.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/Input/mpeg/decoder_mad.cpp') diff --git a/src/plugins/Input/mpeg/decoder_mad.cpp b/src/plugins/Input/mpeg/decoder_mad.cpp index b19389a82..073871c70 100644 --- a/src/plugins/Input/mpeg/decoder_mad.cpp +++ b/src/plugins/Input/mpeg/decoder_mad.cpp @@ -74,6 +74,7 @@ bool DecoderMAD::initialize() } mad_stream_init(&m_stream); + mad_stream_options(&m_stream, MAD_OPTION_IGNORECRC); mad_frame_init(&m_frame); mad_synth_init(&m_synth); @@ -520,6 +521,9 @@ bool DecoderMAD::decodeFrame() if(m_eof) return false; continue; + case MAD_ERROR_BADCRC: + qDebug("DecoderMAD: CRC check error"); + continue; default: if (!MAD_RECOVERABLE(m_stream.error)) return false; -- cgit v1.2.3-13-gbd6f