The branch, master has been updated
       via  535d4047d34a08aa7fd9d2ddefa379bbfb233eb8 (commit)
      from  edf5b777c9e0a7157351704d8b44d7ee32167446 (commit)


- Log -----------------------------------------------------------------
commit 535d4047d34a08aa7fd9d2ddefa379bbfb233eb8
Author:     Gyan Doshi <[email protected]>
AuthorDate: Mon Oct 20 13:09:15 2025 +0530
Commit:     James Almer <[email protected]>
CommitDate: Tue Oct 21 13:22:08 2025 +0000

    ffmpeg: unbreak max_error_rate application
    
    The calculation of decode error rate neglected to cast
    its operands to float, thus always leading to a value of 0.

diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index 66c58c1c3c..2f25265997 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -1007,7 +1007,7 @@ static int decoder_thread(void *arg)
         ret = 0;
 
         err_rate = (dp->dec.frames_decoded || dp->dec.decode_errors) ?
-                   dp->dec.decode_errors / (dp->dec.frames_decoded + 
dp->dec.decode_errors) : 0.f;
+                   (float)dp->dec.decode_errors / (dp->dec.frames_decoded + 
dp->dec.decode_errors) : 0.f;
         if (err_rate > max_error_rate) {
             av_log(dp, AV_LOG_FATAL, "Decode error rate %g exceeds maximum 
%g\n",
                    err_rate, max_error_rate);

-----------------------------------------------------------------------

Summary of changes:
 fftools/ffmpeg_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to