[FFmpeg-cvslog] lavc: translate FF_ER_EXPLODE to AV_EF_EXPLODE|COMPLIANT
Michael Niedermayer
git at videolan.org
Sat Nov 19 21:27:20 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 19 20:33:28 2011 +0100| [c88bdafe258bb570962aff58bdca1576c5a7f29e] | committer: Michael Niedermayer
lavc: translate FF_ER_EXPLODE to AV_EF_EXPLODE|COMPLIANT
This is most likely what the user wants.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c88bdafe258bb570962aff58bdca1576c5a7f29e
---
libavcodec/utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 82a888c..71effb5 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;
More information about the ffmpeg-cvslog
mailing list