Skip to content

Commit

Permalink
squid:S2325 private methods that don't access instance data should be…
Browse files Browse the repository at this point in the history
… static
  • Loading branch information
georgekankava committed Feb 15, 2016
1 parent 3b22266 commit b7ceb28
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ protected ParsableBox createTkhd(Movie movie, Track track) {
return tkhd;
}

private long getTrackDuration(Movie movie, Track track) {
private static long getTrackDuration(Movie movie, Track track) {
return (track.getDuration() * movie.getTimescale()) / track.getTrackMetaData().getTimescale();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ private AudioSampleEntry createAudioSampleEntry() throws IOException {
return audioSampleEntry;
}

private int getFrameSize(int code, int fscod) {
private static int getFrameSize(int code, int fscod) {
int frmsizecode = code >>> 1;
int flag = code & 1;
if (frmsizecode > 18 || flag > 1 || fscod > 2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ public ByteBuffer asByteBuffer() {
return mySamples;
}

private int getBitRate(int rate) throws IOException {
private static int getBitRate(int rate) throws IOException {
int bitrate;
switch (rate)

Expand Down Expand Up @@ -789,7 +789,7 @@ private int getBitRate(int rate) throws IOException {
return bitrate;
}

private int getSampleRate(int sfreq) throws IOException {
private static int getSampleRate(int sfreq) throws IOException {
int samplerate;
switch (sfreq)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ private void writeVUIParameters(VUIParameters vuip, CAVLCWriter writer)

}

private void writeHRDParameters(HRDParameters hrd, CAVLCWriter writer)
private static void writeHRDParameters(HRDParameters hrd, CAVLCWriter writer)
throws IOException {
writer.writeUE(hrd.cpb_cnt_minus1, "HRD: cpb_cnt_minus1");
writer.writeNBit(hrd.bit_rate_scale, 4, "HRD: bit_rate_scale");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public SequenceParameterSetRbsp(InputStream is) throws IOException {
}
}

private void scaling_list_data(CAVLCReader bsr) throws IOException {
private static void scaling_list_data(CAVLCReader bsr) throws IOException {
boolean[][] scaling_list_pred_mode_flag = new boolean[4][];
int[][] scaling_list_pred_matrix_id_delta = new int[4][];
int[][] scaling_list_dc_coef_minus8 = new int[2][];
Expand Down Expand Up @@ -104,7 +104,7 @@ private void scaling_list_data(CAVLCReader bsr) throws IOException {
}


private void profile_tier_level(int maxNumSubLayersMinus1, CAVLCReader bsr) throws IOException {
private static void profile_tier_level(int maxNumSubLayersMinus1, CAVLCReader bsr) throws IOException {
int general_profile_space = bsr.readU(2, "general_profile_space");
boolean general_tier_flag = bsr.readBool("general_tier_flag");
int general_profile_idc = bsr.readU(5, "general_profile_idc");
Expand Down

0 comments on commit b7ceb28

Please sign in to comment.