@@ -25,7 +25,7 @@ public static class ChannelConfiguration {
2525 public String value = "" ;
2626 }
2727
28- public ChannelConfiguration getChannelConfiguration (AudioSampleEntry e ) {
28+ public static ChannelConfiguration getChannelConfiguration (AudioSampleEntry e ) {
2929 DTSSpecificBox ddts = (DTSSpecificBox ) Path .getPath (e , "ddts" );
3030 if (ddts != null ) {
3131 return getDTSChannelConfig (e , ddts );
@@ -50,7 +50,7 @@ public ChannelConfiguration getChannelConfiguration(AudioSampleEntry e) {
5050 return null ;
5151 }
5252
53- private ChannelConfiguration getEC3ChannelConfig (AudioSampleEntry e , EC3SpecificBox dec3 ) {
53+ private static ChannelConfiguration getEC3ChannelConfig (AudioSampleEntry e , EC3SpecificBox dec3 ) {
5454 final List <EC3SpecificBox .Entry > ec3SpecificBoxEntries = dec3 .getEntries ();
5555 int audioChannelValue = 0 ;
5656 for (EC3SpecificBox .Entry ec3SpecificBoxEntry : ec3SpecificBoxEntries ) {
@@ -62,7 +62,7 @@ private ChannelConfiguration getEC3ChannelConfig(AudioSampleEntry e, EC3Specific
6262 return cc ;
6363 }
6464
65- private ChannelConfiguration getAC3ChannelConfig (AudioSampleEntry e , AC3SpecificBox dac3 ) {
65+ private static ChannelConfiguration getAC3ChannelConfig (AudioSampleEntry e , AC3SpecificBox dac3 ) {
6666 ChannelConfiguration cc = new ChannelConfiguration ();
6767 int audioChannelValue = getDolbyAudioChannelValue (dac3 .getAcmod (), dac3 .getLfeon ());
6868 cc .value = Hex .encodeHex (new byte []{(byte ) ((audioChannelValue >> 8 ) & 0xFF ), (byte ) (audioChannelValue & 0xFF )});
@@ -106,7 +106,7 @@ private static int getDolbyAudioChannelValue(int acmod, int lfeon) {
106106 return audioChannelValue ;
107107 }
108108
109- private ChannelConfiguration getAACChannelConfig (AudioSampleEntry e , ESDescriptorBox esds ) {
109+ private static ChannelConfiguration getAACChannelConfig (AudioSampleEntry e , ESDescriptorBox esds ) {
110110
111111 final DecoderConfigDescriptor decoderConfigDescriptor = esds .getEsDescriptor ().getDecoderConfigDescriptor ();
112112 final AudioSpecificConfig audioSpecificConfig = decoderConfigDescriptor .getAudioSpecificInfo ();
@@ -222,7 +222,7 @@ private static int getNumChannels(DTSSpecificBox dtsSpecificBox) {
222222 return numChannels ;
223223 }
224224
225- private ChannelConfiguration getDTSChannelConfig (AudioSampleEntry e , DTSSpecificBox ddts ) {
225+ private static ChannelConfiguration getDTSChannelConfig (AudioSampleEntry e , DTSSpecificBox ddts ) {
226226 ChannelConfiguration cc = new ChannelConfiguration ();
227227 cc .value = Integer .toString (getNumChannels (ddts ));
228228 cc .schemeIdUri = "urn:dts:dash:audio_channel_configuration:2012" ;
@@ -235,7 +235,7 @@ private ChannelConfiguration getDTSChannelConfig(AudioSampleEntry e, DTSSpecific
235235 *
236236 * @return codec
237237 */
238- public String getRfc6381Codec (SampleEntry se ) {
238+ public static String getRfc6381Codec (SampleEntry se ) {
239239
240240 String type = se .getType ();
241241 if (type .equals ("encv" )) {
0 commit comments