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 <cus@passwd.hu>
This commit is contained in:
Marton Balint
2026-06-16 00:53:35 +02:00
parent 99aab32380
commit 18d164a573
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}
}

View File

@@ -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