diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2020-10-23 21:35:53 +1000 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2020-10-25 23:44:25 +1000 |
commit | 5df7fd1cbefb51d3a3c89fe363dbafe0a89ada60 (patch) | |
tree | d633a3f3d5303f35d7d5c5554c850233b284206a | |
parent | d6e903b09b29fece449de37d5f8d6b20f3aa3333 (diff) | |
download | ffmpeg-5df7fd1cbefb51d3a3c89fe363dbafe0a89ada60.tar.gz |
avformat/alp: fix handling of TUN files
Sample rate is always 22050. Verified by trying various files in the game.
-rw-r--r-- | libavformat/alp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/alp.c b/libavformat/alp.c index 4c2e8f0652..e1da312b8c 100644 --- a/libavformat/alp.c +++ b/libavformat/alp.c @@ -83,7 +83,7 @@ static int alp_read_header(AVFormatContext *s) if (hdr.header_size == 8) { /* .TUN music file */ - hdr.sample_rate = 11025 * hdr.num_channels; + hdr.sample_rate = 22050; } else { /* .PCM sound file */ hdr.sample_rate = avio_rl32(s->pb); |