[FFmpeg-devel] [PATCH 2/2] lavc/tta: Don't drop the result of the header crc
James Almer
jamrial at gmail.com
Sat Feb 16 05:12:31 CET 2013
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/tta.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 4240946..48ee914 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -213,7 +213,8 @@ 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);
- tta_check_crc(s, avctx->extradata, 18);
+ if (tta_check_crc(s, avctx->extradata, 18))
+ return AVERROR_INVALIDDATA;
}
/* signature */
--
1.7.12.4
More information about the ffmpeg-devel
mailing list