[FFmpeg-devel] [PATCH 7/8] avcodec/flacdec: consider crc failures fatal at compliant level
Michael Niedermayer
michaelni at gmx.at
Mon Oct 28 16:54:42 CET 2013
This matches the surrounding code and how it behaved before
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/flacdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 9bf950a..f62b313 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -543,7 +543,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
av_crc(av_crc_get_table(AV_CRC_16_ANSI),
0, buf, bytes_read)) {
av_log(s->avctx, AV_LOG_ERROR, "CRC error at PTS %"PRId64"\n", avpkt->pts);
- if (s->avctx->err_recognition & AV_EF_EXPLODE)
+ if (s->avctx->err_recognition & (AV_EF_EXPLODE|AV_EF_COMPLIANT))
return AVERROR_INVALIDDATA;
}
--
1.7.9.5
More information about the ffmpeg-devel
mailing list