Commit dc56d394 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: aout_BitsPerSample uses vlc_fourcc_GetCodec itself, so no need to...

avcodec: aout_BitsPerSample uses  vlc_fourcc_GetCodec itself, so no need to call it ourselves in here
parent 3f89be63
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment