Mercurial > mplayer.hg
changeset 32656:b3b553ad6da8
Set sample_fmt before trying to open an audio codec.
Fixes failure to open flac encoder.
author | reimar |
---|---|
date | Sat, 01 Jan 2011 19:39:19 +0000 |
parents | 6a199704d53f |
children | cccc340868f4 |
files | libmpcodecs/ae_lavc.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Sat Jan 01 14:40:02 2011 +0000 +++ b/libmpcodecs/ae_lavc.c Sat Jan 01 19:39:19 2011 +0000 @@ -187,6 +187,7 @@ 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;