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

Commit ba76e4f4 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Cannot play mp4 file because of abnormal nal length"

parents f294a074 610ae69f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5659,10 +5659,10 @@ media_status_t MPEG4Source::read(
            }

            if (isMalFormed) {
                ALOGE("Video is malformed");
                mBuffer->release();
                mBuffer = NULL;
                return AMEDIA_ERROR_MALFORMED;
                //if nallength abnormal,ignore it.
                ALOGW("abnormal nallength, ignore this NAL");
                srcOffset = size;
                break;
            }

            if (nalLength == 0) {