mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/alp: fix handling of TUN files
Sample rate is always 22050. Verified by trying various files in the game.
This commit is contained in:
parent
d6e903b09b
commit
5df7fd1cbe
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue