Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2020-10-23 14:35:53 +0300
committerZane van Iperen <zane@zanevaniperen.com>2020-10-25 16:44:25 +0300
commit5df7fd1cbefb51d3a3c89fe363dbafe0a89ada60 (patch)
treed633a3f3d5303f35d7d5c5554c850233b284206a /libavformat/alp.c
parentd6e903b09b29fece449de37d5f8d6b20f3aa3333 (diff)
avformat/alp: fix handling of TUN files
Sample rate is always 22050. Verified by trying various files in the game.
Diffstat (limited to 'libavformat/alp.c')
-rw-r--r--libavformat/alp.c2
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);