Loading media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -107,6 +107,7 @@ OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf #else if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { status = PV_FALSE; oscl_free(video); goto fail; } Loading @@ -115,7 +116,8 @@ OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf if (video->vol == NULL) status = PV_FALSE; video->memoryUsage += nLayers * sizeof(Vol *); /* be sure not to leak any previous state */ PVCleanUpVideoDecoder(decCtrl); /* we need to setup this pointer for the application to */ /* pass it around. */ decCtrl->videoDecoderData = (void *) video; Loading Loading
media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -107,6 +107,7 @@ OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf #else if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { status = PV_FALSE; oscl_free(video); goto fail; } Loading @@ -115,7 +116,8 @@ OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf if (video->vol == NULL) status = PV_FALSE; video->memoryUsage += nLayers * sizeof(Vol *); /* be sure not to leak any previous state */ PVCleanUpVideoDecoder(decCtrl); /* we need to setup this pointer for the application to */ /* pass it around. */ decCtrl->videoDecoderData = (void *) video; Loading