mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 01:21:06 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user