Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a104738 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: further miscellaneous fixes to VT contribution

- remove unnecessary shared library dependencies
  (this frees up about 2MB runtime space)
- ASessionDescription: pull out default AS as a constant
- ASessionDescription: populate frame size only for video session

Bug: 153907802
Bug: 121230209
Test: build
Merged-in: I29d38b96d794615f4aead2bb98d147831070d25c
Change-Id: I29d38b96d794615f4aead2bb98d147831070d25c
parent 638df3a5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ cc_library {
        "android.hardware.media.c2@1.0",
        "android.hardware.media.omx@1.0",
        "libbase",
        "libandroid",
        "libandroid_net",
        "libaudioclient",
        "libbinder",
+0 −2
Original line number Diff line number Diff line
@@ -48,8 +48,6 @@ cc_library_static {
    },

    shared_libs: [
        "libandroid",
        "libandroid_net",
        "libbinder",
        "libdatasource",
        "libui",
+4 −2
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@

namespace android {

constexpr unsigned kDefaultAs = 960; // kbps?

ASessionDescription::ASessionDescription()
    : mIsValid(false) {
}
@@ -401,7 +403,7 @@ void ASessionDescription::SDPStringFactory(AString &sdp,
    sdp.append("\r\n");

    sdp.append("b=AS:");
    sdp.append(as > 0 ? as : 960);
    sdp.append(as > 0 ? as : kDefaultAs);
    sdp.append("\r\n");

    sdp.append("a=rtpmap:");
@@ -420,7 +422,7 @@ void ASessionDescription::SDPStringFactory(AString &sdp,
        sdp.append("\r\n");
    }

    if (width > 0 && height > 0) {
    if (!isAudio && width > 0 && height > 0) {
        sdp.append("a=framesize:");
        sdp.append(payloadType);
        sdp.append(" ");
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ cc_defaults {
    ],

    shared_libs: [
        "libandroid",
        "libandroid_net",
        "libcrypto",
        "libdatasource",