[FFmpeg-devel] [PATCH 2/3] avcodec/tta: also do crc check when er compliant is set

Michael Niedermayer michaelni at gmx.at
Sun Oct 27 09:40:24 CET 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/tta.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 6ba3235..0b7fb72 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -250,7 +250,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
     int cur_chan = 0, framelen = s->frame_length;
     int32_t *p;
 
-    if (avctx->err_recognition & AV_EF_CRCCHECK) {
+    if (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_COMPLIANT)) {
         if (buf_size < 4 || tta_check_crc(s, buf, buf_size - 4))
             return AVERROR_INVALIDDATA;
     }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list