- static const unsigned int ppi_dts_bitrate[] =
- {
- 32000, 56000, 64000, 96000, 112000, 128000,
- 192000, 224000, 256000, 320000, 384000,
- 448000, 512000, 576000, 640000, 768000,
- 896000, 1024000, 1152000, 1280000, 1344000,
- 1408000, 1411200, 1472000, 1536000, 1920000,
- 2048000, 3072000, 3840000, 4096000, 0, 0
- };
-
- if( (p_buf[0] != 0x7f) || (p_buf[1] != 0xfe) ||
- (p_buf[2] != 0x80) || (p_buf[3] != 0x01) )
- {
- return( 0 );
- }
+static int SyncInfo( const uint8_t *p_buf,
+ bool *pb_dts_hd,
+ unsigned int *pi_channels,
+ unsigned int *pi_channels_conf,
+ unsigned int *pi_sample_rate,
+ unsigned int *pi_bit_rate,
+ unsigned int *pi_frame_length )
+{
+ unsigned int i_audio_mode;