tiertexseq: set correct block_align for audio
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 20 Jan 2012 04:03:08 +0000 (23:03 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 3 Mar 2012 22:03:27 +0000 (17:03 -0500)
libavformat/tiertexseq.c

index 16af084..df7c38d 100644 (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;
 }