[vlc-commits] sout: transcode: reject spdif passthrough as decoder

Francois Cartegnie git at videolan.org
Fri Jul 7 18:06:03 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul  7 17:44:23 2017 +0200| [a49d637ad3ca4834409668fcc74de7195caceaf3] | committer: Francois Cartegnie

sout: transcode: reject spdif passthrough as decoder

transcode asserting in aout_FiltersPipelineCreate

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

 modules/stream_out/transcode/audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index 67ab7ed500..6279a77fa8 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -58,7 +58,7 @@ static const int pi_channels_maps[9] =
 static int audio_update_format( decoder_t *p_dec )
 {
     aout_FormatPrepare( &p_dec->fmt_out.audio );
-    return 0;
+    return ( p_dec->fmt_out.audio.i_bitspersample > 0 ) ? 0 : -1;
 }
 
 static int transcode_audio_initialize_filters( sout_stream_t *p_stream, sout_stream_id_sys_t *id,



More information about the vlc-commits mailing list