[libav-commits] au: set bit rate

Justin Ruggles git at libav.org
Wed Jan 9 17:57:52 CET 2013


Module: libav
Branch: master
Commit: 9a7b56883d1333cdfcdf0fa7584a333841b86114

Author:    Justin Ruggles <justin.ruggles at gmail.com>
Committer: Justin Ruggles <justin.ruggles at gmail.com>
Date:      Sun Dec 23 13:19:31 2012 -0500

au: set bit rate

---

 libavformat/au.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/au.c b/libavformat/au.c
index 5499c6b..f1038da 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -111,6 +111,7 @@ static int au_read_header(AVFormatContext *s)
     st->codec->codec_id = codec;
     st->codec->channels = channels;
     st->codec->sample_rate = rate;
+    st->codec->bit_rate    = channels * rate * bps;
     avpriv_set_pts_info(st, 64, 1, rate);
     return 0;
 }



More information about the libav-commits mailing list