[vlc-devel] [PATCH 09/13] converter: tospdif: handle VLC_CODEC_DTSHD

Thomas Guillem thomas at gllm.fr
Tue Dec 19 12:38:40 CET 2017


---
 modules/audio_filter/converter/tospdif.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/audio_filter/converter/tospdif.c b/modules/audio_filter/converter/tospdif.c
index 7c757cb606..729bd11aab 100644
--- a/modules/audio_filter/converter/tospdif.c
+++ b/modules/audio_filter/converter/tospdif.c
@@ -97,6 +97,7 @@ static bool is_big_endian( filter_t *p_filter, block_t *p_in_buf )
         case VLC_CODEC_TRUEHD:
             return true;
         case VLC_CODEC_DTS:
+        case VLC_CODEC_DTSHD:
             return p_in_buf->p_buffer[0] == 0x1F
                 || p_in_buf->p_buffer[0] == 0x7F;
         default:
@@ -539,6 +540,7 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
             i_ret = write_buffer_truehd( p_filter, p_in_buf );
             break;
         case VLC_CODEC_DTS:
+        case VLC_CODEC_DTSHD:
             /* if the fmt_out is configured for a higher rate than 48kHz
              * (IEC958 rate), use the DTS-HD framing to pass the DTS Core and
              * or DTS substreams (like DTS-HD MA). */
@@ -575,6 +577,7 @@ static int Open( vlc_object_t *p_this )
     filter_sys_t *p_sys;
 
     if( ( p_filter->fmt_in.audio.i_format != VLC_CODEC_DTS &&
+          p_filter->fmt_in.audio.i_format != VLC_CODEC_DTSHD &&
           p_filter->fmt_in.audio.i_format != VLC_CODEC_A52 &&
           p_filter->fmt_in.audio.i_format != VLC_CODEC_EAC3 &&
           p_filter->fmt_in.audio.i_format != VLC_CODEC_MLP &&
-- 
2.11.0



More information about the vlc-devel mailing list