summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-01 13:19:34 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-01 13:19:34 +0200
commitb3ad40e350938aecd0854784c8bfe26ff8300e52 (patch)
tree119bf205528dad6cb1f0b59defcb830578a234cf /plugins/mpgmad
parent4f92288f4d8b1890740b748a56adfb08478dd5e1 (diff)
disable libmad crc checking
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 43cf4aff..a054d371 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -649,6 +649,7 @@ cmp3_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
// trace ("mpgmad: nchannels: %d\n", _info->channels);
mad_stream_init(&info->stream);
+ mad_stream_options (&info->stream, MAD_OPTION_IGNORECRC);
mad_frame_init(&info->frame);
mad_synth_init(&info->synth);
@@ -986,6 +987,7 @@ cmp3_seek_sample (DB_fileinfo_t *_info, int sample) {
info->buffer.remaining = 0;
info->buffer.decode_remaining = 0;
mad_stream_init(&info->stream);
+ mad_stream_options (&info->stream, MAD_OPTION_IGNORECRC);
mad_frame_init(&info->frame);
mad_synth_init(&info->synth);
@@ -1029,6 +1031,7 @@ cmp3_seek_sample (DB_fileinfo_t *_info, int sample) {
return -1;
}
mad_stream_init(&info->stream);
+ mad_stream_options (&info->stream, MAD_OPTION_IGNORECRC);
mad_frame_init(&info->frame);
mad_synth_init(&info->synth);
_info->readpos = (float)(info->buffer.currentsample - info->buffer.startsample) / info->buffer.samplerate;