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

Commit cd92134b authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "libstagefright: Fix crash in AVCDecoder during thumbnail creation." into gingerbread

parents d82d1c5d 4c3c2ecc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -384,7 +384,10 @@ status_t AVCDecoder::read(
                }

                AVCDecObject *pDecVid = (AVCDecObject *)mHandle->AVCObject;

                if(pDecVid->seqParams[0] == NULL) {
                    LOGE("Sequence Parameter set at id 0 is invalid");
                    break;
                }
                int32_t width =
                    (pDecVid->seqParams[0]->pic_width_in_mbs_minus1 + 1) * 16;