The branch, master has been updated
       via  c75439a93bd3785fe98c6bd313b08c4b52d3f274 (commit)
       via  002a940ca6e1c34031123040b9ee409ab7acf093 (commit)
      from  09856e4e483f14125d38e5c84e908f623bb1a888 (commit)


- Log -----------------------------------------------------------------
commit c75439a93bd3785fe98c6bd313b08c4b52d3f274
Author:     dariusz-f <[email protected]>
AuthorDate: Wed Aug 27 08:24:21 2025 +0000
Commit:     Mark Thompson <[email protected]>
CommitDate: Mon Sep 8 20:59:31 2025 +0000

    Update libavformat/apvdec.c
    
    Increase au_size limit by 4 times to fit more complex videos.
    
    Signed-off-by: dariusz-f <[email protected]>

diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c
index 4a5592d98c..f8e3cf58cd 100644
--- a/libavformat/apvdec.c
+++ b/libavformat/apvdec.c
@@ -207,7 +207,7 @@ static int apv_read_packet(AVFormatContext *s, AVPacket 
*pkt)
     au_size = avio_rb32(s->pb);
     if (au_size == 0 && avio_feof(s->pb))
         return AVERROR_EOF;
-    if (au_size == 0 || au_size > UINT32_MAX) {
+    if (au_size < 24 || au_size > 1 << 26) {
         av_log(s, AV_LOG_ERROR,
                "APV AU has invalid size: %"PRIu32"\n", au_size);
         return AVERROR_INVALIDDATA;

commit 002a940ca6e1c34031123040b9ee409ab7acf093
Author:     Dariusz Frankiewicz <[email protected]>
AuthorDate: Wed Aug 6 14:11:56 2025 +0200
Commit:     Mark Thompson <[email protected]>
CommitDate: Mon Sep 8 20:59:31 2025 +0000

    avformat/apv: fix range of au_size
    
    Acces unit size is described in documentation as > 0 < 0xFFFFFFFF
    
    Signed-off-by: Dariusz Frankiewicz <[email protected]>

diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c
index 52adb17e41..4a5592d98c 100644
--- a/libavformat/apvdec.c
+++ b/libavformat/apvdec.c
@@ -207,7 +207,7 @@ static int apv_read_packet(AVFormatContext *s, AVPacket 
*pkt)
     au_size = avio_rb32(s->pb);
     if (au_size == 0 && avio_feof(s->pb))
         return AVERROR_EOF;
-    if (au_size < 24 || au_size > 1 << 24) {
+    if (au_size == 0 || au_size > UINT32_MAX) {
         av_log(s, AV_LOG_ERROR,
                "APV AU has invalid size: %"PRIu32"\n", au_size);
         return AVERROR_INVALIDDATA;

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

Summary of changes:
 libavformat/apvdec.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