Browse Source
avformat/alp: fix handling of TUN files
Sample rate is always 22050. Verified by trying various files in the game.
tags/n4.4
Zane van Iperen
4 years ago
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5
1 changed files with
1 additions and
1 deletions
-
libavformat/alp.c
|
@@ -83,7 +83,7 @@ static int alp_read_header(AVFormatContext *s) |
|
|
|
|
|
|
|
|
if (hdr.header_size == 8) { |
|
|
if (hdr.header_size == 8) { |
|
|
/* .TUN music file */ |
|
|
/* .TUN music file */ |
|
|
hdr.sample_rate = 11025 * hdr.num_channels; |
|
|
|
|
|
|
|
|
hdr.sample_rate = 22050; |
|
|
} else { |
|
|
} else { |
|
|
/* .PCM sound file */ |
|
|
/* .PCM sound file */ |
|
|
hdr.sample_rate = avio_rl32(s->pb); |
|
|
hdr.sample_rate = avio_rl32(s->pb); |
|
|