aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-19 20:33:28 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-19 20:43:44 +0100
commitc88bdafe258bb570962aff58bdca1576c5a7f29e (patch)
tree741f0128ed14dc45b44d70f32b20f86b5733606c
parent5dd16af6b5b3ac1941d82b6bb3c670230c6bcf7b (diff)
downloadffmpeg-c88bdafe258bb570962aff58bdca1576c5a7f29e.tar.gz
lavc: translate FF_ER_EXPLODE to AV_EF_EXPLODE|COMPLIANT
This is most likely what the user wants. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 82a888c4a7..71effb5848 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -617,6 +617,8 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
av_log(avctx, AV_LOG_DEBUG, "err{or,}_recognition separate: %d; %d\n",
avctx->error_recognition, avctx->err_recognition);
switch(avctx->error_recognition){
+ case FF_ER_EXPLODE : avctx->err_recognition |= AV_EF_EXPLODE | AV_EF_COMPLIANT | AV_EF_CAREFUL;
+ break;
case FF_ER_VERY_AGGRESSIVE:
case FF_ER_AGGRESSIVE : avctx->err_recognition |= AV_EF_AGGRESSIVE;
case FF_ER_COMPLIANT : avctx->err_recognition |= AV_EF_COMPLIANT;