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

Git pushed a commit to branch master
in repository ffmpeg.

commit 18d164a573ade6535df81d6474c9a78aefcd1ac3
Author:     Marton Balint <[email protected]>
AuthorDate: Tue Jun 16 00:53:35 2026 +0200
Commit:     Marton Balint <[email protected]>
CommitDate: Wed Jun 24 23:31:54 2026 +0200

    avformat/asfdec_f: do not truncate get_value result
    
    Also change the function to return 0 on error, this is a more sensible error
    value for aspect ratios anyway.
    
    Signed-off-by: Marton Balint <[email protected]>
---
 libavformat/asfdec_f.c        | 4 ++--
 tests/ref/fate/id3v2-wma-comm | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index ed9b42a956..a1a0428184 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -202,7 +202,7 @@ static int asf_probe(const AVProbeData *pd)
         return 0;
 }
 
-static int get_value(AVIOContext *pb, int type)
+static uint64_t get_value(AVIOContext *pb, int type)
 {
     switch (type) {
     case ASF_BOOL:
@@ -214,7 +214,7 @@ static int get_value(AVIOContext *pb, int type)
     case ASF_WORD:
         return avio_rl16(pb);
     default:
-        return INT_MIN;
+        return 0;
     }
 }
 
diff --git a/tests/ref/fate/id3v2-wma-comm b/tests/ref/fate/id3v2-wma-comm
index 58130ed733..59a79bef01 100644
--- a/tests/ref/fate/id3v2-wma-comm
+++ b/tests/ref/fate/id3v2-wma-comm
@@ -18,7 +18,7 @@ TAG:MusicMatch_Preference=
 TAG:MusicMatch_Situation=
 TAG:track=5
 TAG:composer=Jacques Higelin
-TAG:WM/EncodingTime=1120324736
+TAG:WM/EncodingTime=127518048290000000
 TAG:album_artist=Jacques Higelin
 TAG:WM/Provider=User Feedback
 TAG:creation_time=2003-03-23T11:52:22.967000Z

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

Reply via email to