This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit cf7f75ebf19b52a83003cac5581e2a1e9d40cab3
Author:     Niklas Haas <[email protected]>
AuthorDate: Sun Jun 14 11:35:13 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Aug 31 19:10:45 2026 +0000

    avformat/shared: don't acquire more blocks on already errored caches
    
    Correctly mirrors the logic used to decide whether to write back to the
    cache or not.
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavformat/shared.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/shared.c b/libavformat/shared.c
index e7c2221373..3e24dabab4 100644
--- a/libavformat/shared.c
+++ b/libavformat/shared.c
@@ -681,7 +681,7 @@ read_block:
         av_fallthrough;
 
     case BLOCK_NONE:
-        if (s->read_only)
+        if (s->read_only || s->write_err)
             break; /* don't mark block as pending */
         if (atomic_compare_exchange_strong_explicit(&block->state, &state,
                                                     BLOCK_PENDING,

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to