# HG changeset patch # User michael # Date 1111718468 0 # Node ID 4abf8628ee741611d3ead13febef13b4c119121a # Parent ec7bd6ad70b59a046c165f307b05e06f2bbab21c 1000l (dwSampleSize != nSamplesPerSec) diff -r ec7bd6ad70b5 -r 4abf8628ee74 libmpdemux/muxer_lavf.c --- a/libmpdemux/muxer_lavf.c Fri Mar 25 00:48:18 2005 +0000 +++ b/libmpdemux/muxer_lavf.c Fri Mar 25 02:41:08 2005 +0000 @@ -158,7 +158,8 @@ 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;