From ea1d64ab1066145ba919b79a2080f3091d562217 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 6 Mar 2012 20:26:48 +0000 Subject: ttadec: unbreak playback of matroska files Matroska demuxer needs to recreate tta header, so just display crc error without aborting. Signed-off-by: Paul B Mahol Signed-off-by: Ronald S. Bultje --- libavcodec/tta.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/tta.c') diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 269ba86fd9..ad80246525 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -208,8 +208,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx) { if (avctx->err_recognition & AV_EF_CRCCHECK) { s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); - if (tta_check_crc(s, avctx->extradata, 18)) - return AVERROR_INVALIDDATA; + tta_check_crc(s, avctx->extradata, 18); } /* signature */ -- cgit v1.2.3