[vlc-commits] codec/spdif: only need channels count

Thomas Guillem git at videolan.org
Wed Oct 5 18:19:04 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct  5 12:56:38 2016 +0200| [f96d0253d9a2094dde9c9f6a724d695f3fd2a8bb] | committer: Thomas Guillem

codec/spdif: only need channels count

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

 modules/codec/spdif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/spdif.c b/modules/codec/spdif.c
index bbd0e4d..5252894 100644
--- a/modules/codec/spdif.c
+++ b/modules/codec/spdif.c
@@ -82,8 +82,7 @@ OpenDecoder(vlc_object_t *p_this)
     p_dec->fmt_out.audio = p_dec->fmt_in.audio;
     p_dec->fmt_out.audio.i_format = p_dec->fmt_out.i_codec;
 
-    if (p_dec->fmt_out.audio.i_physical_channels == 0
-     || p_dec->fmt_out.audio.i_original_channels == 0
+    if (p_dec->fmt_out.audio.i_channels == 0
      || p_dec->fmt_out.audio.i_bytes_per_frame == 0
      || p_dec->fmt_out.audio.i_frame_length == 0
      || decoder_UpdateAudioFormat(p_dec))



More information about the vlc-commits mailing list