au: set bit rate
[ffmpeg.git] / libavformat / au.c
index 5499c6bd75bb607a5692377523e5631a7585a7b2..f1038da64b56539043642fea175cbf835242c6e2 100644 (file)
@@ -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;
 }