Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-01 01:07:08 +0400
committerPaul B Mahol <onemda@gmail.com>2013-06-01 01:11:55 +0400
commit710940bec16869ff7e07562f1e103e28a84ca316 (patch)
tree0eb1ccdf9631efa5ce364232f58797d77d82a77f /libavcodec/tta.c
parent6510686c16633339b7f23236abd2c32a62424ba2 (diff)
tta: stop checking header checksum in extradata
It's redundant now as check in done in demuxer instead. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 0de3fe96ce..2e27093322 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -207,14 +207,10 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
if (avctx->extradata_size < 22)
return AVERROR_INVALIDDATA;
+ s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);
if (show_bits_long(&s->gb, 32) == AV_RL32("TTA1"))
{
- if (avctx->err_recognition & AV_EF_CRCCHECK) {
- s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
- tta_check_crc(s, avctx->extradata, 18);
- }
-
/* signature */
skip_bits_long(&s->gb, 32);