summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-12 19:05:57 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-12 19:05:57 +0000
commitd4df0074af9591392eba8b638024886f8c17df20 (patch)
treea925d097b3ef751e8db8e5372fd066ad6566e125 /libmpdemux
parentf7cdaa9cba185d5f4a3d7f36db2d480582ab34ce (diff)
downloadmpv-d4df0074af9591392eba8b638024886f8c17df20.tar.bz2
mpv-d4df0074af9591392eba8b638024886f8c17df20.tar.xz
in fix_parameters() move assignment of audio bitrate to the proper block (the bitrate for video is actually hardcoded to 800000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17835 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_lavf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmpdemux/muxer_lavf.c b/libmpdemux/muxer_lavf.c
index 25e2fff5b8..a40f71b64a 100644
--- a/libmpdemux/muxer_lavf.c
+++ b/libmpdemux/muxer_lavf.c
@@ -183,9 +183,6 @@ static void fix_parameters(muxer_stream_t *stream)
#else
ctx = &(spriv->avstream->codec);
#endif
-
- if(stream->wf && stream->wf->nAvgBytesPerSec)
- ctx->bit_rate = stream->wf->nAvgBytesPerSec * 8;
ctx->rc_buffer_size= stream->vbv_size;
ctx->rc_max_rate= stream->max_rate;
@@ -198,6 +195,8 @@ static void fix_parameters(muxer_stream_t *stream)
ctx->codec_tag = codec_get_wav_tag(ctx->codec_id);
#endif
mp_msg(MSGT_MUXER, MSGL_INFO, "AUDIO CODEC ID: %x, TAG: %x\n", ctx->codec_id, (uint32_t) ctx->codec_tag);
+ if(stream->wf->nAvgBytesPerSec)
+ ctx->bit_rate = stream->wf->nAvgBytesPerSec * 8;
ctx->sample_rate = stream->wf->nSamplesPerSec;
// mp_msg(MSGT_MUXER, MSGL_INFO, "stream->h.dwSampleSize: %d\n", stream->h.dwSampleSize);
ctx->channels = stream->wf->nChannels;