You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavc: remove incorrect mapping between semantically incompatible error recognization values and flags.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -616,9 +616,6 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
|
|||||||
|
|
||||||
av_log(avctx, AV_LOG_DEBUG, "err{or,}_recognition separate: %d; %d\n",
|
av_log(avctx, AV_LOG_DEBUG, "err{or,}_recognition separate: %d; %d\n",
|
||||||
avctx->error_recognition, avctx->err_recognition);
|
avctx->error_recognition, avctx->err_recognition);
|
||||||
/* FF_ER_CAREFUL (==1) implies AV_EF_CRCCHECK (== 1<<1 - 1),
|
|
||||||
FF_ER_COMPLIANT (==2) implies AV_EF_{CRCCHECK,BITSTREAM} (== 1<<2 - 1), et cetera} */
|
|
||||||
avctx->err_recognition |= (1<<(avctx->error_recognition-(avctx->error_recognition>=FF_ER_VERY_AGGRESSIVE))) - 1;
|
|
||||||
switch(avctx->error_recognition){
|
switch(avctx->error_recognition){
|
||||||
case FF_ER_VERY_AGGRESSIVE:
|
case FF_ER_VERY_AGGRESSIVE:
|
||||||
case FF_ER_AGGRESSIVE : avctx->err_recognition |= AV_EF_AGGRESSIVE;
|
case FF_ER_AGGRESSIVE : avctx->err_recognition |= AV_EF_AGGRESSIVE;
|
||||||
|
Reference in New Issue
Block a user