Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Use baseline profile for android H264 #36

Open
wants to merge 1 commit into
base: 76-sdk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sdk/android/api/org/webrtc/VideoCodecInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ public class VideoCodecInfo {

public static final String H264_PROFILE_CONSTRAINED_BASELINE = "42e0";
public static final String H264_PROFILE_CONSTRAINED_HIGH = "640c";
public static final String H264_PROFILE_BASELINE = "4200";
public static final String H264_LEVEL_3_1 = "1f"; // 31 in hex.
public static final String H264_CONSTRAINED_HIGH_3_1 =
H264_PROFILE_CONSTRAINED_HIGH + H264_LEVEL_3_1;
public static final String H264_CONSTRAINED_BASELINE_3_1 =
H264_PROFILE_CONSTRAINED_BASELINE + H264_LEVEL_3_1;
public static final String H264_BASELINE_3_1 =
H264_PROFILE_BASELINE + H264_LEVEL_3_1;

public final String name;
public final Map<String, String> params;
Expand Down
2 changes: 1 addition & 1 deletion sdk/android/src/java/org/webrtc/H264Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static Map<String, String> getDefaultH264Params(boolean isHighProfile) {
params.put(VideoCodecInfo.H264_FMTP_PACKETIZATION_MODE, "1");
params.put(VideoCodecInfo.H264_FMTP_PROFILE_LEVEL_ID,
isHighProfile ? VideoCodecInfo.H264_CONSTRAINED_HIGH_3_1
: VideoCodecInfo.H264_CONSTRAINED_BASELINE_3_1);
: VideoCodecInfo.H264_BASELINE_3_1);
return params;
}

Expand Down