[vlc-commits] avcodec: aout_BitsPerSample uses vlc_fourcc_GetCodec itself, so no need to call it ourselves in here

Ilkka Ollakka git at videolan.org
Sun Dec 30 13:13:03 CET 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Dec 18 15:59:52 2012 +0200| [dc56d39434dc403687556dc8cae1b45fec25eb30] | committer: Ilkka Ollakka

avcodec: aout_BitsPerSample uses  vlc_fourcc_GetCodec itself, so no need to call it ourselves in here

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc56d39434dc403687556dc8cae1b45fec25eb30
---

 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 da26dc0..0f0f169 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;



More information about the vlc-commits mailing list