[vlc-commits] decoder: check i_profile similarity for audio

Thomas Guillem git at videolan.org
Wed Dec 20 19:14:21 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 14:02:26 2017 +0100| [e0f8be415bbfe216aaec0b756ac2a5ddc7e4286b] | committer: Thomas Guillem

decoder: check i_profile similarity for audio

Maybe es_format_IsSimilar should be used.

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

 src/input/decoder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index da4f66b460..081d81f807 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -312,7 +312,8 @@ static int aout_update_format( decoder_t *p_dec )
 
     if( p_owner->p_aout &&
        ( !AOUT_FMTS_IDENTICAL(&p_dec->fmt_out.audio, &p_owner->fmt.audio) ||
-         p_dec->fmt_out.i_codec != p_dec->fmt_out.audio.i_format ) )
+         p_dec->fmt_out.i_codec != p_dec->fmt_out.audio.i_format ||
+         p_dec->fmt_out.i_profile != p_owner->fmt.i_profile ) )
     {
         audio_output_t *p_aout = p_owner->p_aout;
 



More information about the vlc-commits mailing list