ttadec: unbreak playback of matroska files
authorPaul B Mahol <onemda@gmail.com>
Tue, 6 Mar 2012 20:26:48 +0000 (20:26 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 8 Mar 2012 19:56:45 +0000 (11:56 -0800)
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>
libavcodec/tta.c

index 269ba86..ad80246 100644 (file)
@@ -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 */