]> git.sesse.net Git - vlc/commitdiff
avcodec: aout_BitsPerSample uses vlc_fourcc_GetCodec itself, so no need to call...
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 18 Dec 2012 13:59:52 +0000 (15:59 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 30 Dec 2012 11:24:17 +0000 (13:24 +0200)
modules/codec/avcodec/encoder.c

index da26dc03bd32e84131d097a456f580a4b9c39bb1..0f0f169ee15384803981b3144241742fc031a963 100644 (file)
@@ -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;