[MPlayer-cvslog] r32743 - trunk/libmpcodecs/ae_lavc.c

reimar subversion at mplayerhq.hu
Sat Jan 1 20:39:19 CET 2011


Author: reimar
Date: Sat Jan  1 20:39:19 2011
New Revision: 32743

Log:
Set sample_fmt before trying to open an audio codec.
Fixes failure to open flac encoder.

Modified:
   trunk/libmpcodecs/ae_lavc.c

Modified: trunk/libmpcodecs/ae_lavc.c
==============================================================================
--- trunk/libmpcodecs/ae_lavc.c	Sat Jan  1 15:40:02 2011	(r32742)
+++ trunk/libmpcodecs/ae_lavc.c	Sat Jan  1 20:39:19 2011	(r32743)
@@ -187,6 +187,7 @@ int mpae_init_lavc(audio_encoder_t *enco
 	lavc_actx->codec_type = CODEC_TYPE_AUDIO;
 	lavc_actx->codec_id = lavc_acodec->id;
 	// put sample parameters
+	lavc_actx->sample_fmt = AV_SAMPLE_FMT_S16;
 	lavc_actx->channels = encoder->params.channels;
 	lavc_actx->sample_rate = encoder->params.sample_rate;
 	lavc_actx->time_base.num = 1;


More information about the MPlayer-cvslog mailing list