From dc56d39434dc403687556dc8cae1b45fec25eb30 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Tue, 18 Dec 2012 15:59:52 +0200 Subject: [PATCH] avcodec: aout_BitsPerSample uses vlc_fourcc_GetCodec itself, so no need to call it ourselves in here --- modules/codec/avcodec/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c index da26dc03bd..0f0f169ee1 100644 --- a/modules/codec/avcodec/encoder.c +++ b/modules/codec/avcodec/encoder.c @@ -821,7 +821,7 @@ int OpenEncoder( vlc_object_t *p_this ) goto error; } p_enc->fmt_out.audio.i_blockalign = p_context->block_align; - p_enc->fmt_out.audio.i_bitspersample = aout_BitsPerSample( vlc_fourcc_GetCodec( AUDIO_ES, p_enc->fmt_out.i_codec ) ); + p_enc->fmt_out.audio.i_bitspersample = aout_BitsPerSample( p_enc->fmt_out.i_codec ); if( p_context->frame_size > 1 ) p_sys->i_buffer_out = 8 * AVCODEC_MAX_AUDIO_FRAME_SIZE; -- 2.39.2