1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00

1000l (dwSampleSize != nSamplesPerSec)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15006 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2005-03-25 02:41:08 +00:00
parent 93b2bacee5
commit c9a5ffcee7

View File

@ -158,7 +158,8 @@ static void fix_parameters(muxer_stream_t *stream, void *sh)
ctx->codec_tag = codec_get_wav_tag(ctx->codec_id);
mp_msg(MSGT_MUXER, MSGL_INFO, "AUDIO CODEC ID: %x, TAG: %x\n", ctx->codec_id, (uint32_t) ctx->codec_tag);
ctx->bit_rate = stream->wf->nAvgBytesPerSec * 8;
ctx->sample_rate = stream->h.dwSampleSize;
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;
ctx->frame_size = 576;
ctx->block_align = stream->wf->nBlockAlign;