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

Git pushed a commit to branch master
in repository ffmpeg.

commit ce104d1054fac85aeec663cc800e5fe99bd14e8c
Author:     Marton Balint <[email protected]>
AuthorDate: Sun Jun 14 00:05:44 2026 +0200
Commit:     Marton Balint <[email protected]>
CommitDate: Wed Jun 24 23:31:53 2026 +0200

    avformat/asfdec_o: fix EOF check in read_header
    
    Since d1ac6456369fecdc99044e69bb22130bbedc0558 ff_get_guid() never returns
    EOF. This change completely broke the asfdec_o demuxer returning failure on
    every file.
    
    Signed-off-by: Marton Balint <[email protected]>
---
 libavformat/asfdec_o.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index 9338d4ee63..dd022cb404 100644
--- a/libavformat/asfdec_o.c
+++ b/libavformat/asfdec_o.c
@@ -1616,7 +1616,7 @@ static int asf_read_header(AVFormatContext *s)
             break;
         asf->offset = avio_tell(pb);
         if ((ret = ff_get_guid(pb, &guid)) < 0) {
-            if (ret == AVERROR_EOF && asf->data_reached)
+            if (avio_feof(pb) && asf->data_reached)
                 break;
             else
                 goto failed;

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

Reply via email to