Message ID | 20201023134416.26577-1-zane@zanevaniperen.com |
---|---|
State | Accepted |
Commit | 5df7fd1cbefb51d3a3c89fe363dbafe0a89ada60 |
Headers | show |
Series | [FFmpeg-devel,1/4] avformat/alp: fix handling of TUN files | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
On 23/10/20 11:44 pm, Zane van Iperen wrote: > > Sample rate is always 22050. Verified by trying various files in the game. > > Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> > --- > libavformat/alp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Will apply soon.
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);
Sample rate is always 22050. Verified by trying various files in the game. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> --- libavformat/alp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)