aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-01 18:17:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-07 23:58:59 +0200
commitb6b9c150f06adc5a2feada116e9d8f3c3fba8b71 (patch)
tree14485ef7dd94b9b6d89df397398ffdc38448e7eb /ffmpeg.c
parent728bb910ec04ef7138a4089ca72398270210e11f (diff)
downloadffmpeg-b6b9c150f06adc5a2feada116e9d8f3c3fba8b71.tar.gz
ffmpeg: add max_error_rate to allow tuning the point decoding errors are considered a failure of the whole transcoding.
Suggested-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 38a3bd0d02..d7bcb78cc0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3420,7 +3420,7 @@ int main(int argc, char **argv)
}
av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" frames successfully decoded, %"PRIu64" decoding errors\n",
decode_error_stat[0], decode_error_stat[1]);
- if (2*decode_error_stat[0] < decode_error_stat[1])
+ if ((decode_error_stat[0] + decode_error_stat[1]) * max_error_rate < decode_error_stat[1])
exit_program(69);
exit_program(received_nb_signals ? 255 : 0);