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

Commit 9a021f7f authored by Kim Sungyeon's avatar Kim Sungyeon Committed by Lajos Molnar
Browse files

VT: Skip unknown payload type packet



This prevents to create useless source object

Merged-in: Ib3cf672a1bb66fd165b4c749ea47fe5a7d22baab
Change-Id: Ib3cf672a1bb66fd165b4c749ea47fe5a7d22baab
Signed-off-by: default avatarKim Sungyeon <sy85.kim@samsung.com>
parent e3fef042
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -597,6 +597,11 @@ status_t ARTPConnection::parseRTP(StreamInfo *s, const sp<ABuffer> &buffer) {
        return -1;
    }

    if ((data[1] & 0x7f) == 20) {
        // Unassigned payload type
        return -1;
    }

    if (data[0] & 0x20) {
        // Padding present.