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

Commit 46efd2ae authored by Ming Zhou's avatar Ming Zhou Committed by Sungtak Lee
Browse files

Fix the issue that rtsp video with MP4V-ES/ can't be played.



When mIsGeneric is false, mSizeLength is the default value (0) and
initCheck() should be true under this condition.

Bug: 223779558
Signed-off-by: default avatarMing Zhou <ming.zhou@nxp.com>
Change-Id: I8d840e8f7d81094d5b1927f425110a2d7b75752e
parent c4b8e378
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ struct AUHeader {
};

bool AMPEG4ElementaryAssembler::initCheck() {
    if(mSizeLength == 0 || mIndexLength == 0 || mIndexDeltaLength == 0) {
    if(mIsGeneric && (mSizeLength == 0 || mIndexLength == 0 || mIndexDeltaLength == 0)) {
        android_errorWriteLog(0x534e4554, "124777537");
        return false;
    }