mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-03 06:53:23 +02:00
ffmpeg: print frame decoding error statistic
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
eedcac68f3
commit
6a78ec180e
2
ffmpeg.c
2
ffmpeg.c
@ -3361,6 +3361,8 @@ int main(int argc, char **argv)
|
||||
if (do_benchmark) {
|
||||
printf("bench: utime=%0.3fs\n", ti / 1000000.0);
|
||||
}
|
||||
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])
|
||||
exit(254);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user