commit | 88bd831b2efb1cb706d772466339833f14a18467 | [log] [tgz] |
---|---|---|
author | Ram Mohan <ram.mohan@ittiam.com> | Sat Mar 11 20:46:02 2023 +0530 |
committer | Ram Mohan <ram.mohan@ittiam.com> | Sat Mar 11 15:25:18 2023 +0000 |
tree | d33fc13bc3a4d3bd274161844cc797ee2d308e94 | |
parent | d5101e9967ff1609c714315ef54021a5c6630cba [diff] |
C2SoftAvcEnc: Clip level to max supported level Bug: 272829183 Test: atest android.mediav2.cts.EncoderProfileLevelTest Change-Id: I9ebf2e8e4db6ba84cd87bf9ec1dfd44bb829b9ec
diff --git a/media/codec2/components/avc/C2SoftAvcEnc.cpp b/media/codec2/components/avc/C2SoftAvcEnc.cpp index 5d2856a..9c054f0 100644 --- a/media/codec2/components/avc/C2SoftAvcEnc.cpp +++ b/media/codec2/components/avc/C2SoftAvcEnc.cpp
@@ -356,7 +356,7 @@ needsUpdate = true; } } - if (!found) { + if (!found || me.v.level > LEVEL_AVC_5) { // We set to the highest supported level. me.set().level = LEVEL_AVC_5; }