[FFmpeg-cvslog] tiertexseq: set correct block_align for audio

Justin Ruggles git at videolan.org
Sun Mar 4 04:47:44 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Jan 19 23:03:08 2012 -0500| [b7beabab4b78cc253d06c0a33f15b8ff79866e85] | committer: Justin Ruggles

tiertexseq: set correct block_align for audio

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7beabab4b78cc253d06c0a33f15b8ff79866e85
---

 libavformat/tiertexseq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c
index 16af084..df7c38d 100644
--- a/libavformat/tiertexseq.c
+++ b/libavformat/tiertexseq.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list