[FFmpeg-devel] [PATCH 6/8] avcodec/alsdec: consider crc failures fatal at careful level
Michael Niedermayer
michaelni at gmx.at
Mon Oct 28 16:54:41 CET 2013
This matches the surrounding code and how it behaved before
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/alsdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 825949f..277873b 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1565,7 +1565,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
if (ctx->cur_frame_length != sconf->frame_length &&
ctx->crc_org != ctx->crc) {
av_log(avctx, AV_LOG_ERROR, "CRC error.\n");
- if (avctx->err_recognition & AV_EF_EXPLODE)
+ if (avctx->err_recognition & (AV_EF_EXPLODE | AV_EF_CAREFUL))
return AVERROR_INVALIDDATA;
}
}
--
1.7.9.5
More information about the ffmpeg-devel
mailing list