Skip to content

Commit

Permalink
One bug fix in MP4Config.java
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed May 9, 2013
1 parent cf81e09 commit c894969
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/net/majorkernelpanic/streaming/audio/AACStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ public AACStream() throws IOException {
setAudioSource(MediaRecorder.AudioSource.CAMCORDER);

try {
Field deprecatedName = MediaRecorder.OutputFormat.class.getField("AAC_ADTS");
setOutputFormat(deprecatedName.getInt(null));
Field name = MediaRecorder.OutputFormat.class.getField("AAC_ADTS");
Log.d(TAG,"AAC ADTS seems to be supported: AAC_ADTS="+name.getInt(null));
setOutputFormat(name.getInt(null));
} catch (Exception e) {
Log.e(TAG,"AAC ADTS not supported on this phone");
throw new AACNotSupportedException();
}

Expand Down
4 changes: 2 additions & 2 deletions src/net/majorkernelpanic/streaming/mp4/MP4Config.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2011 GUIGUI Simon, [email protected]
* Copyright (C) 2011-2013 GUIGUI Simon, [email protected]
*
* This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/)
*
Expand Down Expand Up @@ -30,7 +30,7 @@ public class MP4Config {
private MP4Parser mp4Parser;
private String mProfilLevel, mPPS, mSPS;

public MP4Config(String profil, String pps, String sps) {
public MP4Config(String profil, String sps, String pps) {
mProfilLevel = profil;
mPPS = pps;
mSPS = sps;
Expand Down

0 comments on commit c894969

Please sign in to comment.