Browse Source

tiertexseq: set correct block_align for audio

tags/n0.11
Justin Ruggles 13 years ago
parent
commit
b7beabab4b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/tiertexseq.c

+ 1
- 1
libavformat/tiertexseq.c View File

@@ -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…
Cancel
Save