ffmpeg: only count got_output/errors in decode_error_stat
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 30 Jun 2015 19:09:50 +0000 (21:09 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 19 Jul 2015 07:43:05 +0000 (09:43 +0200)
commit70b97a89d2d7ba837c830b1da5924314d68fc3e7
tree41565d2749740096f78b312aa2937b6074480c0e
parent1d1adf5ff42041810d4069ce03303706fbf13d8a
ffmpeg: only count got_output/errors in decode_error_stat

If threading is used, the first (thread_count - 1) packets are read
before any frame/error is returned. Counting this as successful decoding
is wrong, because it also happens when no single frame could be decoded.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit bd0f14123fd8c7ff1c27b726d143f84c67f3a522)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
ffmpeg.c