Commit 4a4ecf29 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: set DTSH descriptor

parent ebfff8ab
......@@ -43,6 +43,7 @@
#include "pes.h"
#include "../../codec/jpeg2000.h"
#include "../../packetizer/dts_header.h"
#include <assert.h>
......@@ -545,7 +546,11 @@ void BuildPMT( dvbpsi_t *p_dvbpsi, vlc_object_t *p_object,
{
uint8_t i_ver;
/* DTS registration descriptor (ETSI TS 101 154 Annex F) */
if(vlc_popcount(p_stream->fmt->audio.i_frame_length) == 1)
if( p_stream->fmt->i_profile == PROFILE_DTS_HD )
{
i_ver = 'H';
}
else if(vlc_popcount(p_stream->fmt->audio.i_frame_length) == 1)
{
i_ver = ctz( p_stream->fmt->audio.i_frame_length >> 8 );
if(i_ver == 0 || i_ver > 3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment