Mercurial > mplayer.hg
changeset 33039:281e1b1ae34c
Warn when audio encoder requires an input format different from S16,
it is not working correctly currently.
author | reimar |
---|---|
date | Sun, 27 Mar 2011 10:24:11 +0000 |
parents | 6bcfd2a73d43 |
children | a6be6a134ac0 |
files | libmpcodecs/ae_lavc.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Sun Mar 27 07:16:38 2011 +0000 +++ b/libmpcodecs/ae_lavc.c Sun Mar 27 10:24:11 2011 +0000 @@ -188,6 +188,9 @@ lavc_actx->codec_id = lavc_acodec->id; // put sample parameters lavc_actx->sample_fmt = lavc_acodec->sample_fmts ? lavc_acodec->sample_fmts[0] : AV_SAMPLE_FMT_S16; + if (lavc_actx->sample_fmt != AV_SAMPLE_FMT_S16) + mp_msg(MSGT_MENCODER, MSGL_ERR, "Encoder requires input not properly supported." + "Try using e.g. 'ac3_fixed' instead if 'ac3' as codec\n"); encoder->input_format = samplefmt2affmt(lavc_actx->sample_fmt); lavc_actx->channels = encoder->params.channels; lavc_actx->sample_rate = encoder->params.sample_rate;