[FFmpeg-devel] [PATCH] libmp3lame: allow to disable joint stereo
Derek Buitenhuis
derek.buitenhuis at gmail.com
Sat Mar 30 23:23:05 CET 2013
On 2013-03-30 6:16 PM, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> libavcodec/libmp3lame.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Grammar fix:
libmp3lame: Allow joint stereo to be disabled
> - lame_set_mode(s->gfp, avctx->channels > 1 ? JOINT_STEREO : MONO);
> + lame_set_mode(s->gfp, avctx->channels > 1 ? s->joint_stereo ? JOINT_STEREO : STEREO : MONO);
Nested ternary operations get a bit unreadable, but it's not
a deal-breaker.
Otherwise, LGTM.
- Derek
More information about the ffmpeg-devel
mailing list