mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/alp: fix handling of TUN files
Sample rate is always 22050. Verified by trying various files in the game. (cherry picked from commit 5df7fd1cbefb51d3a3c89fe363dbafe0a89ada60)
This commit is contained in:
parent
4fdc632a90
commit
1936413eda
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user