[MPlayer-cvslog] CVS: main/libmpdemux muxer_lavf.c,1.1,1.2

Michael Niedermayer CVS syncmail at mplayerhq.hu
Fri Mar 25 03:41:10 CET 2005


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv29702

Modified Files:
	muxer_lavf.c 
Log Message:
1000l (dwSampleSize != nSamplesPerSec)


Index: muxer_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_lavf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- muxer_lavf.c	21 Feb 2005 23:16:12 -0000	1.1
+++ muxer_lavf.c	25 Mar 2005 02:41:08 -0000	1.2
@@ -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;




More information about the MPlayer-cvslog mailing list