Mercurial > mplayer.hg
diff libmpcodecs/ae_lavc.c @ 33504:5a9d68a07ed1
Pass "native" filter chain sample format to audio encoder.
Make ae_lavc try to match this format.
author | reimar |
---|---|
date | Sun, 12 Jun 2011 00:28:51 +0000 |
parents | 2c1df9ec369a |
children | 30f5e5cd3676 |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Sun Jun 12 00:23:10 2011 +0000 +++ b/libmpcodecs/ae_lavc.c Sun Jun 12 00:28:51 2011 +0000 @@ -193,7 +193,7 @@ const enum AVSampleFormat *fmts; lavc_actx->sample_fmt = lavc_acodec->sample_fmts[0]; // fallback to first format for (fmts = lavc_acodec->sample_fmts; *fmts != AV_SAMPLE_FMT_NONE; fmts++) { - if (*fmts == AV_SAMPLE_FMT_S16) { // preferred format found + if (samplefmt2affmt(*fmts) == encoder->params.sample_format) { // preferred format found lavc_actx->sample_fmt = *fmts; break; }