mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tiertexseq: set correct block_align for audio
This commit is contained in:
parent
f9cf91d822
commit
b7beabab4b
@ -234,7 +234,7 @@ static int seq_read_header(AVFormatContext *s)
|
||||
st->codec->sample_rate = SEQ_SAMPLE_RATE;
|
||||
st->codec->bits_per_coded_sample = 16;
|
||||
st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample * st->codec->channels;
|
||||
st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
|
||||
st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample / 8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user