diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-03-07 00:26:48 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-08 23:56:45 +0400 |
commit | ea1d64ab1066145ba919b79a2080f3091d562217 (patch) | |
tree | 3b5a17376aaf8fea7104828350c75e423881f5d8 /libavcodec/tta.c | |
parent | 12623a8026c1657aedce2ef10d58bffba85dee2d (diff) |
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 <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |