mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 06:11:10 +00:00
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
This commit is contained in:
parent
f7cdaa9cba
commit
d4df0074af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user